Compare commits

...

2 Commits

Author SHA1 Message Date
773571ae62 Restore original no-connection behavior
Previously not specifying a connection when multiple were available
would error. This restores that behaviour.
2023-08-23 01:38:50 -04:00
37cbee5060 Fix incorrect short flags in node list 2023-08-22 09:26:35 -04:00

View File

@@ -850,14 +850,14 @@ def cli_node_info(
help="Limit list to nodes in the specified daemon state.",
)
@click.option(
"-ds",
"-cs",
"--coordinator-state",
"coordinator_state_filter",
default=None,
help="Limit list to nodes in the specified coordinator state.",
)
@click.option(
"-ds",
"-vs",
"--domain-state",
"domain_state_filter",
default=None,
@@ -5600,11 +5600,8 @@ def cli(
global CLI_CONFIG
store_data = get_store(store_path)
# If no connection is specified, use the first connection in the store
if _connection is None:
CLI_CONFIG = get_config(store_data, list(store_data.keys())[0])
# If the connection isn't in the store, mark it bad but pass the value
elif _connection not in store_data.keys():
if _connection is not None and _connection not in store_data.keys():
CLI_CONFIG = {"badcfg": True, "connection": _connection}
else:
CLI_CONFIG = get_config(store_data, _connection)