Skip to content

Commit

Permalink
Merge pull request #1004 from chelma/cat-indices
Browse files Browse the repository at this point in the history
Updated `console cluster cat-indices` to warn when you don't refresh
  • Loading branch information
AndreKurait authored Sep 24, 2024
2 parents 7159aea + 8f9ad67 commit 92bee7f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ def cat_indices_cmd(ctx, refresh):
)
)
return

if not refresh:
click.echo("\nWARNING: Cluster information may be stale. Use --refresh to update.\n")
click.echo("SOURCE CLUSTER")
if ctx.env.source_cluster:
click.echo(clusters_.cat_indices(ctx.env.source_cluster, refresh=refresh))
Expand Down

0 comments on commit 92bee7f

Please sign in to comment.