Skip to content

Commit c7e444c

Browse files
committed
remove groups from simple command
1 parent 75dc145 commit c7e444c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

infrahub_sdk/ctl/cli_commands.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ def info(detail: bool = typer.Option(False, help="Display detailed information."
550550

551551
if groups := info["groups"]:
552552
infrahub_info.add_row("Groups:", "")
553-
for k, v in info["groups"].items():
553+
for k, v in groups.items():
554554
infrahub_info.add_row("", k, v)
555555

556556
layout["infrahub_info"].update(Panel(infrahub_info, title="Infrahub Info"))
@@ -567,8 +567,5 @@ def info(detail: bool = typer.Option(False, help="Display detailed information."
567567
table.add_row("Python Version:", platform.python_version())
568568
table.add_row("SDK Version:", sdk_version)
569569
table.add_row("Infrahub Version:", info["infrahub_version"])
570-
if groups := info["groups"]:
571-
table.add_row("Groups:")
572-
for k, v in groups.items():
573-
table.add_row("", k, v)
570+
574571
console.print(table)

0 commit comments

Comments
 (0)