summaryrefslogtreecommitdiffstats
path: root/roles/installer_checkpoint
diff options
context:
space:
mode:
authorEric Wolinetz <ewolinet@redhat.com>2018-01-15 12:18:08 -0600
committerEric Wolinetz <ewolinet@redhat.com>2018-01-24 16:27:31 -0600
commit83378c05f3aaa67e36a3e7577784351fdb711c57 (patch)
tree8b388050fe3eee591772efb61e08bba5ca47cd1e /roles/installer_checkpoint
parentf34f986bf3ab0523ce6ec1145b4a57a51b9ab3fa (diff)
downloadopenshift-83378c05f3aaa67e36a3e7577784351fdb711c57.tar.gz
openshift-83378c05f3aaa67e36a3e7577784351fdb711c57.tar.bz2
openshift-83378c05f3aaa67e36a3e7577784351fdb711c57.tar.xz
openshift-83378c05f3aaa67e36a3e7577784351fdb711c57.zip
Only automatically restart if cluster is in yellow or green state
Diffstat (limited to 'roles/installer_checkpoint')
-rw-r--r--roles/installer_checkpoint/callback_plugins/installer_checkpoint.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/installer_checkpoint/callback_plugins/installer_checkpoint.py b/roles/installer_checkpoint/callback_plugins/installer_checkpoint.py
index da7e7b1da..a38b95c1d 100644
--- a/roles/installer_checkpoint/callback_plugins/installer_checkpoint.py
+++ b/roles/installer_checkpoint/callback_plugins/installer_checkpoint.py
@@ -127,6 +127,10 @@ class CallbackModule(CallbackBase):
self._display.display(
'\tThis phase can be restarted by running: {}'.format(
phase_attributes[phase]['playbook']))
+ if 'message' in stats.custom['_run'][phase]:
+ self._display.display(
+ '\t{}'.format(
+ stats.custom['_run'][phase]['message']))
self._display.display("", screen_only=True)