Skip to content

Commit

Permalink
fix(cli): don't display VarGroupInfo.id (or .created) (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
fubuloubu authored Feb 14, 2025
1 parent 8b0e511 commit 44acfdf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion silverback/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,9 @@ def bot_info(cluster: "ClusterClient", bot_name: str):
click.echo(yaml.safe_dump(bot_dump))
if bot.environment:
click.echo("environment:")
click.echo(yaml.safe_dump([var.model_dump() for var in bot.vargroups]))
click.echo(
yaml.safe_dump([var.model_dump(exclude={"id", "created"}) for var in bot.vargroups])
)


@bots.command(name="update", section="Configuration Commands")
Expand Down

0 comments on commit 44acfdf

Please sign in to comment.