Gitlab will migrate to a new storage backend starting 0300 UTC on 2020-04-04. We do not anticipate a maintenance window for this migration. Performance may be impacted over the weekend. Thanks for your patience.

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,
stdout=subprocess.PIPE).stdout.strip()
# FIXME: this should be last state change time
estl = systemctl_cmd('show', '--property=ExecMainStartTimestamp', nodes=[node],
check=False, universal_newlines=True,
stdout=subprocess.PIPE).stdout.strip()
......
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