@agilecustoms/envctl 0.32.7 → 0.32.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/service/EnvCtl.js +1 -1
- package/package.json +1 -1
package/dist/service/EnvCtl.js
CHANGED
|
@@ -195,12 +195,12 @@ export class EnvCtl {
|
|
|
195
195
|
async destroy(tfArgs, force, cwd) {
|
|
196
196
|
const key = this.terraformAdapter.getTerraformBackend(cwd).getKey();
|
|
197
197
|
const env = await this.get(key);
|
|
198
|
-
this.checkStatus(env);
|
|
199
198
|
if (env.status === EnvStatus.Init) {
|
|
200
199
|
console.log(`Env ${env.key} has no resources, nothing to destroy, call 'delete' command instead`);
|
|
201
200
|
return;
|
|
202
201
|
}
|
|
203
202
|
if (!force) {
|
|
203
|
+
this.checkStatus(env);
|
|
204
204
|
const kind = this.cliHelper.getKind(cwd);
|
|
205
205
|
if (env.kind && env.kind !== kind) {
|
|
206
206
|
throw new KnownException(`Env ${env.key} kind (dir-name): ${env.kind} - make sure you run destroy from the same directory`);
|