Fix syntax error in password masking
Fixing the syntax error in script file when masking passwords in the puppet logs Partial-Bug: 1896116 Signed-off-by: Sabeel Ansari <Sabeel.Ansari@windriver.com> Change-Id: Icb20ebbd1d9c4b757af4b42b9e740ede44c0b6b2
This commit is contained in:
parent
55142a3d88
commit
b46ce5704f
|
@ -172,10 +172,10 @@ flock /var/run/puppet.lock \
|
|||
puppet apply --debug --trace --modulepath ${PUPPET_MODULES_PATH} ${PUPPET_MANIFEST} \
|
||||
< /dev/null 2>&1 | awk ' { system("date -u +%FT%T.%3N | tr \"\n\" \" \""); print $0; fflush(); } ' > ${LOGFILE}
|
||||
|
||||
rc = $?
|
||||
rc=$?
|
||||
mask_passwd
|
||||
|
||||
if [ rc -ne 0 ]; then
|
||||
if [ ${rc} -ne 0 ]; then
|
||||
echo "[FAILED]"
|
||||
echo "See ${LOGFILE} for details"
|
||||
exit 1
|
||||
|
|
Loading…
Reference in New Issue