Skip to content

Commit

Permalink
code
Browse files Browse the repository at this point in the history
  • Loading branch information
liangxin1300 committed Apr 6, 2021
1 parent 0adb897 commit 29fb483
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crmsh/ui_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ def _parse_option_for_nodes(self, action_type, context, *args):
if options.all and args:
context.fatal_error("Should either use --all or specific node")
member_list = utils.list_cluster_nodes()
if options.all:
utils.cluster_run_cmd("crm cluster start")
for node in args:
if node not in member_list:
context.fatal_error("Node \"{}\" is not a cluster node".format(node))
Expand Down

0 comments on commit 29fb483

Please sign in to comment.