Merge "Fix name error exception"

This commit is contained in:
Zuul 2017-10-27 22:56:54 +00:00 committed by Gerrit Code Review
commit d63e150e8a
1 changed files with 4 additions and 2 deletions

View File

@ -63,8 +63,10 @@ def _check_resource_in_host(remaining, match_word, options, local_hostname):
for host in host_list:
if host == local_hostname:
_ok_run_script(options)
utils.ok("pacemaker resource %s doesn't on this node "
"(but on %s)" % (resource, patterns.group(2)))
utils.ok(
"pacemaker resource %s doesn't run on this node "
"(but on %s)" % (options.pacemaker_resource, patterns.group(2))
)
def _pacemaker_host_check():
parser = argparse.ArgumentParser(