HA: ensure TRIPLEO_MINOR_UPDATE is defined for <svc>_restart_bundle
Containers <svc>_restart_bundle use script pacemaker_restart_bundle.sh
which behaves according to the value of environment variable
TRIPLEO_MINOR_UPDATE. Set a default value in case this variable is
unset (i.e. during stack update).
Change-Id: I59da2d3c50fa30a8f3e557a16367f889b103a6f8
Closes-Bug: #1849503
(cherry picked from commit 81610bdc36
)
This commit is contained in:
parent
838ea794a9
commit
a9b558f3dd
|
@ -5,6 +5,7 @@ set -u
|
|||
# ./pacemaker_restart_bundle.sh galera-bundle galera
|
||||
RESOURCE=$1
|
||||
TRIPLEO_SERVICE=$2
|
||||
: ${TRIPLEO_MINOR_UPDATE=false}
|
||||
|
||||
# try to restart only if resource has been created already
|
||||
if /usr/sbin/pcs resource show $RESOURCE; then
|
||||
|
|
Loading…
Reference in New Issue