Add logging when a resource is not running

Change-Id: I34ca8068b5e373c6e0374d61656a7e3cb22ce901
Partial-Bug: #1837401
This commit is contained in:
Chris MacNaughton 2019-07-22 13:21:12 -05:00
parent 8527adaae0
commit ccb44ce2bc
1 changed files with 2 additions and 0 deletions

View File

@ -110,6 +110,7 @@ def crm_res_running(opt_name):
if output.startswith("resource %s is running" % opt_name):
return True
log('CRM Resource not running - Status: {}'.format(output), WARNING)
return False
@ -141,6 +142,7 @@ def crm_res_running_on_node(resource, node):
if output.startswith("resource {} is running".format(resource)):
return True
log('CRM Resource not running - Status: {}'.format(output), WARNING)
return False