Skip to content

Commit 7acd891

Browse files
authored
Merge pull request #808 from rackerlabs/keystone-compare-20250328
feat(uc-diff): Adds diffsync human-friendly summary to uc-diff output
2 parents 903100f + 82ff559 commit 7acd891

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • python/diff-nautobot-understack/diff_nautobot_understack

python/diff-nautobot-understack/diff_nautobot_understack/cli.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ def display_output(
4646
diff_output_props.get("title"),
4747
diff_output_props.get("id_column_name"),
4848
)
49+
elif __output_format == "human":
50+
print("Summary:\n")
51+
print(diff_result.str())
4952
else:
5053
print(diff_result.dict())
5154

@@ -96,7 +99,7 @@ def project(
9699
def network(
97100
debug: bool = typer.Option(False, "--debug", "-v", help="Enable debug mode"),
98101
output_format: str = typer.Option(
99-
"json", "--format", help="Available formats json, table"
102+
"json", "--format", help="Available formats: json, table, human"
100103
),
101104
):
102105
"""OpenStack networks ⟹ Nautobot UCVNIs"""

0 commit comments

Comments
 (0)