mirror of
https://github.com/azure/login.git
synced 2026-06-05 19:53:31 +00:00
Run az account clear instead of az logout at the beginning (#377)
* az account clear * remove catch error
This commit is contained in:
parent
7c3c862a28
commit
1b07ea9bb5
1 changed files with 1 additions and 6 deletions
|
|
@ -34,12 +34,7 @@ export class AzureCliLogin {
|
|||
await this.executeAzCliCommand(["--version"], true, execOptions);
|
||||
core.debug(`Azure CLI version used:\n${output}`);
|
||||
|
||||
try {
|
||||
await this.executeAzCliCommand(["logout"], true, execOptions);
|
||||
}
|
||||
catch (error) {
|
||||
core.debug(`Ignore logout error: "${error}"`);
|
||||
}
|
||||
await this.executeAzCliCommand(["account", "clear"], true, execOptions);
|
||||
|
||||
this.setAzurestackEnvIfNecessary();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue