Skip to content

Commit

Permalink
Merge pull request #2060 from jemrobinson/fix-teardown
Browse files Browse the repository at this point in the history
Fix teardown --force
  • Loading branch information
jemrobinson authored Jul 29, 2024
2 parents 360a3a8 + 7d6e31b commit 8a63055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data_safe_haven/infrastructure/project_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,9 @@ def set_config(self, name: str, value: str, *, secret: bool) -> None:
def teardown(self, *, force: bool = False) -> None:
"""Teardown the infrastructure deployed with Pulumi."""
try:
self.refresh()
if force:
self.cancel()
self.refresh()
self.destroy()
self.cleanup()
except Exception as exc:
Expand Down

0 comments on commit 8a63055

Please sign in to comment.