Sudo pre-check should always succeed.
If there were no sudo failures on the host, the pre-check was failing because the exit code of grep was propogating. Change-Id: I0c9cce65cb6f9109cfc2bbf5b8fe8da15cb8ff88 Reviewed-on: https://review.openstack.org/12448 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
007ff75c58
commit
1ca541b111
@ -32,6 +32,7 @@ case "$1" in
|
||||
echo "0" > /tmp/jenkins-sudo-log/mtime-pre
|
||||
fi
|
||||
grep -h "$PATTERN" $LOGFILE > /tmp/jenkins-sudo-log/pre
|
||||
exit 0
|
||||
;;
|
||||
post)
|
||||
if [ -f $OLDLOGFILE ]
|
||||
|
Loading…
Reference in New Issue
Block a user