Skip to content

Commit

Permalink
fix: idleDuration parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
keroxp committed Apr 13, 2020
1 parent 3c9bd3f commit beb3a68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17293,7 +17293,7 @@ function deploy({ deployContext, region, deployment, idleDuration }) {
});
}
let opts = [`--region ${region}`];
if (idleDuration != null) {
if (idleDuration) {
opts.push(`--canaryTaskIdleDuration ${idleDuration}`);
}
const cmd = `cage rollout ${opts.join(" ")} ${deployContext}`;
Expand Down
2 changes: 1 addition & 1 deletion src/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export async function deploy({
});
}
let opts = [`--region ${region}`];
if (idleDuration != null) {
if (idleDuration) {
opts.push(`--canaryTaskIdleDuration ${idleDuration}`);
}
const cmd = `cage rollout ${opts.join(" ")} ${deployContext}`
Expand Down

0 comments on commit beb3a68

Please sign in to comment.