Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
MoChilia committed Nov 24, 2023
1 parent 691b447 commit fc8ecb5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Cli/AzureCliLogin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ export class AzureCliLogin {
if (!this.loginConfig.subscriptionId) {
return;
}
let sub = this.loginConfig.subscriptionId.split('').join(' ');
console.log(`Setting subscription: ${sub}`);
let args = ["account", "set", "--subscription", this.loginConfig.subscriptionId];
await this.executeAzCliCommand(args, true, this.loginOptions);
core.info("Subscription is set successfully.");
Expand All @@ -144,6 +146,7 @@ export class AzureCliLogin {
silent?: boolean,
execOptions: any = {}) {
execOptions.silent = !!silent;
console.log(`"${this.azPath}" ${args.join(" ")}`);
await exec.exec(`"${this.azPath}"`, args, execOptions);
}
}
Expand Down

0 comments on commit fc8ecb5

Please sign in to comment.