Skip to content

Commit

Permalink
chore: adjusted cli to not nest master config under config (#7344)
Browse files Browse the repository at this point in the history
  • Loading branch information
corban-beaird authored Jul 10, 2023
1 parent badb925 commit 34bdc97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion e2e_tests/tests/cluster/managed_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))


Expand Down
6 changes: 3 additions & 3 deletions harness/determined/cli/master.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 34bdc97

Please sign in to comment.