@agilecustoms/envctl 0.37.0 → 0.37.1
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.
|
@@ -85,7 +85,6 @@ export class EnvService {
|
|
|
85
85
|
return await this.envApi.createEphemeral(createEnv);
|
|
86
86
|
}
|
|
87
87
|
async lockTerraform(env, cwd) {
|
|
88
|
-
console.log('load local state config');
|
|
89
88
|
const config = this.localStateService.load(cwd);
|
|
90
89
|
console.log('validate terraform.tfstate file');
|
|
91
90
|
const stateFileContent = this.terraformAdapter.getTerraformBackend(cwd).validateAndGetStateFileContent();
|
|
@@ -37,9 +37,10 @@ export class LocalStateService {
|
|
|
37
37
|
load(cwd) {
|
|
38
38
|
if (this.config)
|
|
39
39
|
return this.config;
|
|
40
|
+
console.log('load local state config');
|
|
40
41
|
const filePath = this.filePath(cwd);
|
|
41
42
|
if (!fs.existsSync(filePath)) {
|
|
42
|
-
console.warn('
|
|
43
|
+
console.warn('local state file does not exist, must have been accidentally deleted, re-initializing');
|
|
43
44
|
return this.createEmptyConfig(filePath);
|
|
44
45
|
}
|
|
45
46
|
const data = fs.readFileSync(filePath, 'utf-8');
|