Maintenance will be performed on,,, and tomorrow, 2020/08/04, starting at approximately 9am PDT. It is expected to take around 15 minutes and there will be a short period of downtime towards the end of the maintenance window. Please direct any comments, questions or concerns to

Commit f4b3df88 authored by Jameson Rollins's avatar Jameson Rollins

guardctrl: fix spelling

and cleanup, add FIXME
parent 50a435e9
......@@ -82,7 +82,7 @@ p.add_argument('cmd', metavar='<command>', nargs='?', help="command")
def list_nodes(args):
"""List nodes and node subervision state."""
"""List nodes and node supervision state."""
nodes = args.nodes
include_status = args.include_status
only_active = args.only_active
......@@ -120,7 +120,6 @@ def list_nodes(node_filter='*', only_active=False, include_status=False):
# check status
if include_status or only_active:
nodes = []
for node in sorted(matched_nodes):
active = systemctl_cmd('is-active', nodes=[node],
check=False, universal_newlines=True,
......@@ -131,6 +130,7 @@ def list_nodes(node_filter='*', only_active=False, include_status=False):
enabled = systemctl_cmd('is-enabled', nodes=[node],
check=False, universal_newlines=True,
# FIXME: this should be last state change time
estl = systemctl_cmd('show', '--property=ExecMainStartTimestamp', nodes=[node],
check=False, universal_newlines=True,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment