Skip to content

Commit

Permalink
fix(cli): bad display for cluster info (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
fubuloubu authored Oct 31, 2024
1 parent e1d39ba commit 32a819b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions silverback/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,12 +727,11 @@ def cluster_info(cluster: ClusterClient):

# NOTE: This actually doesn't query the cluster's routes, which are protected
click.echo(f"Cluster Version: v{cluster.version}")

if config := cluster.state.configuration:
click.echo(yaml.safe_dump(config.settings_display_dict()))

else:
click.secho("No Cluster Configuration detected", fg="yellow", bold=True)
# TODO: Add way to fetch config and display it (this doesn't work)
# if config := cluster.state.configuration:
# click.echo(yaml.safe_dump(config.settings_display_dict()))
# else:
# click.secho("No Cluster Configuration detected", fg="yellow", bold=True)


@cluster.command(name="health")
Expand Down

0 comments on commit 32a819b

Please sign in to comment.