Skip to content

Commit

Permalink
fix(ci): do not confirm on force for deletion (datahub-project#7106)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal authored and Eric Yomi committed Feb 8, 2023
1 parent 4210ff8 commit 673c2f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metadata-ingestion/src/datahub/cli/delete_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def delete(
)
remove_references: bool = False

if references_count > 0:
if (not force) and references_count > 0:
print(
f"This urn was referenced in {references_count} other aspects across your metadata graph:"
)
Expand All @@ -199,7 +199,7 @@ def delete(
)
remove_references = click.confirm("Do you want to delete these references?")

if remove_references:
if force or remove_references:
delete_references(urn, dry_run=False, cached_session_host=(session, host))

deletion_result: DeletionResult = delete_one_urn_cmd(
Expand Down

0 comments on commit 673c2f2

Please sign in to comment.