Join GitHub today
undertaker: Enable force-destroying model with invalid cloud credential #10272
Description of change
If the model's cloud credential was invalid the model couldn't be destroyed, even with
Removing the undertaker's guard wasn't sufficient, because the environ tracker is also guarded, so the undertaker's manifold is changed so it uses a custom environment destroyer if the environ tracker is unavailable (rather than just stopping). The custom destroyer always fails (because it can't talk to the environment at the moment) but the changes in #10245 mean that
@pmatulis it should be made clear in the destroy-model docs that if a model is force-destroyed then resources might not be cleaned up in the underlying cloud.