Skip to content

Commit

Permalink
Fix validation failures
Browse files Browse the repository at this point in the history
  • Loading branch information
snehapar9 committed Nov 6, 2023
1 parent aaa10e0 commit 030ce76
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion azurecontainerapps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,10 @@ export class azurecontainerapps {
}

if (this.useCliToBuildAndPushImage && !this.util.isNullOrEmpty(this.appSourcePath)) {
this.commandLineArgs.push(`--source ${this.appSourcePath} --location ${this.location}`);
this.commandLineArgs.push(`--source ${this.appSourcePath}`);
if (this.util.isNullOrEmpty(this.location)) {
this.commandLineArgs.push(`--location ${this.location}`);
}
}
}

Expand Down
5 changes: 4 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,10 @@ var azurecontainerapps = /** @class */ (function () {
}
}
if (this.useCliToBuildAndPushImage && !this.util.isNullOrEmpty(this.appSourcePath)) {
this.commandLineArgs.push("--source " + this.appSourcePath + " --location " + this.location);
this.commandLineArgs.push("--source " + this.appSourcePath);
if (this.util.isNullOrEmpty(this.location)) {
this.commandLineArgs.push("--location " + this.location);
}
}
};
/**
Expand Down

0 comments on commit 030ce76

Please sign in to comment.