From 34bdc97f336d3ecb8ccba3b06ee18281c6d46a6f Mon Sep 17 00:00:00 2001 From: Corban Beaird Date: Mon, 10 Jul 2023 16:56:44 -0600 Subject: [PATCH] chore: adjusted cli to not nest master config under config (#7344) --- e2e_tests/tests/cluster/managed_cluster.py | 2 +- harness/determined/cli/master.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/e2e_tests/tests/cluster/managed_cluster.py b/e2e_tests/tests/cluster/managed_cluster.py index de67d8230a1..5134303e20e 100644 --- a/e2e_tests/tests/cluster/managed_cluster.py +++ b/e2e_tests/tests/cluster/managed_cluster.py @@ -140,7 +140,7 @@ def fetch_config(self) -> Dict: return cast(Dict, master_config) def fetch_config_reattach_wait(self) -> float: - s = self.fetch_config()["config"]["resource_pools"][0]["agent_reconnect_wait"] + s = self.fetch_config()["resource_pools"][0]["agent_reconnect_wait"] return float(s.rstrip("s")) diff --git a/harness/determined/cli/master.py b/harness/determined/cli/master.py index 14e8dfce070..72647584ab0 100644 --- a/harness/determined/cli/master.py +++ b/harness/determined/cli/master.py @@ -10,11 +10,11 @@ @authentication.required def config(args: Namespace) -> None: - resp = bindings.get_GetMasterConfig(cli.setup_session(args)) + resp = bindings.get_GetMasterConfig(cli.setup_session(args)).config if args.json: - determined.cli.render.print_json(resp.to_json()) + determined.cli.render.print_json(resp) else: - print(yaml.safe_dump(resp.to_json(), default_flow_style=False)) + print(yaml.safe_dump(resp, default_flow_style=False)) def get_master(args: Namespace) -> None: