fix base stack exists check
parent
15d5ec4b81
commit
f90c906155
|
|
@ -1032,7 +1032,7 @@ class AWSBuildEnvironment {
|
||||||
StackName: baseStackName,
|
StackName: baseStackName,
|
||||||
};
|
};
|
||||||
let CFState = yield CF.describeStacks(describeStackInput).promise();
|
let CFState = yield CF.describeStacks(describeStackInput).promise();
|
||||||
const stackExists = CFState.Stacks === null || CFState.Stacks === [];
|
const stackExists = CFState.Stacks !== null && CFState.Stacks !== [];
|
||||||
if (stackExists) {
|
if (stackExists) {
|
||||||
yield CF.createStack({
|
yield CF.createStack({
|
||||||
StackName: baseStackName,
|
StackName: baseStackName,
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -238,7 +238,7 @@ class AWSBuildEnvironment implements RemoteBuilderProviderInterface {
|
||||||
StackName: baseStackName,
|
StackName: baseStackName,
|
||||||
};
|
};
|
||||||
let CFState = await CF.describeStacks(describeStackInput).promise();
|
let CFState = await CF.describeStacks(describeStackInput).promise();
|
||||||
const stackExists: Boolean = CFState.Stacks === null || CFState.Stacks === [];
|
const stackExists: Boolean = CFState.Stacks !== null && CFState.Stacks !== [];
|
||||||
if (stackExists) {
|
if (stackExists) {
|
||||||
await CF.createStack({
|
await CF.createStack({
|
||||||
StackName: baseStackName,
|
StackName: baseStackName,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue