Skip to content

Commit

Permalink
medium: ui_node: Fix "crm node fence" (bsc#974902) (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
gao-yan authored and krig committed Apr 17, 2016
1 parent 7f418f1 commit cff692f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crmsh/ui_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def do_fence(self, context, node):
if not config.core.force and \
not utils.ask("Fencing %s will shut down the node and migrate any resources that are running on it! Do you want to fence %s?" % node):
return False
if utils.is_remote_node(node):
if xmlutil.is_remote_node(node):
return utils.ext_cmd("stonith_admin -F '%s'" % (node)) == 0
else:
return utils.ext_cmd(self.node_fence % (node)) == 0
Expand Down

0 comments on commit cff692f

Please sign in to comment.