[x] This isn't an open-ended question (open a discussion if it is).
:strawberry: Suggested change
When using dsh context teardown for a context with no deployed infrastructure, the error message could be cleaner, simply stating that no context infrastructure is currently deployed for the selected context.
(data-safe-haven) deploydsh@5c85686fc4dd:/workspaces/data-safe-haven$ dsh context teardown
2024-05-23 15:26:10 [ INFO] Reading project settings from '/home/deploydsh/.config/data_safe_haven/contexts.yaml'. context_settings.py:152
2024-05-23 15:26:11 [ ERROR] Failed to destroy context resources. cli.py:104
2024-05-23 15:26:11 [ ERROR] Failed to remove resource group shm-chickpea-rg-context. cli.py:104
2024-05-23 15:26:11 [ ERROR] (ResourceGroupNotFound) Resource group 'shm-chickpea-rg-context' could not be found. cli.py:104
2024-05-23 15:26:11 [ ERROR] Code: ResourceGroupNotFound cli.py:104
2024-05-23 15:26:11 [ ERROR] Message: Resource group 'shm-chickpea-rg-context' could not be found.
:white_check_mark: Checklist
:strawberry: Suggested change
When using
dsh context teardown
for a context with no deployed infrastructure, the error message could be cleaner, simply stating that no context infrastructure is currently deployed for the selected context.:steam_locomotive: How could this be done?