mirror of
https://github.com/azure/login.git
synced 2026-03-12 18:07:08 -04:00
Run az account clear instead of az logout at the beginning (#377)
* az account clear * remove catch error
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user