Ignore systemctl return code in yum_update.sh
authorLukas Bezdicka <lbezdick@redhat.com>
Thu, 19 Jan 2017 13:17:25 +0000 (14:17 +0100)
committerLukas Bezdicka <lbezdick@redhat.com>
Thu, 19 Jan 2017 13:17:25 +0000 (14:17 +0100)
We only need to know if pacemaker service is in active state.

Change-Id: Id5e16f2bbbe51b8a0c250eb5d35e89e61a7b3383
Resolves: rhbz#1414779
Closes-Bug: #1656980

extraconfig/tasks/yum_update.sh

index 74af7b0..edcc9e8 100755 (executable)
@@ -42,7 +42,7 @@ if [[ "$list_updates" == "" ]]; then
     exit 0
 fi
 
-pacemaker_status=$(systemctl is-active pacemaker)
+pacemaker_status=$(systemctl is-active pacemaker || :)
 
 # Fix the redis/rabbit resource start/stop timeouts. See https://bugs.launchpad.net/tripleo/+bug/1633455
 # and https://bugs.launchpad.net/tripleo/+bug/1634851