DescriptionAzure provider: clean up storage last in Destroy()
This branch changes the order of what environ.Destroy() does to make sure the storage is cleaned up last. This is to ensure that, if something goes wrong in Destroy() (if, for instance, the Virtual Network cannot be cleaned up), the state-info file in the storage won't be cleaned up. This way, if someone tries to bootstrap the environment again, the error message will be meaningful.
Drive-by fix: Fix the test 'TestDestroyCleansUpStorage': populate the storage before destroying the environment so that the check that verifies that the storage is empty would fail if Destroy() wouldn't have been called.
https://code.launchpad.net/~rvb/juju-core/az-destroy-clean-up-last/+merge/180326
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 1
Patch Set 2 : Azure provider: clean up storage last in Destroy() #
MessagesTotal messages: 7
|