removing cli extension if it already exists

This commit is contained in:
Atharva Mulmuley 2021-04-29 14:10:20 +05:30
parent 322d1f8ec1
commit f85ff292e5
2 changed files with 2 additions and 0 deletions

View File

@ -71,6 +71,7 @@ function getArcKubeconfig() {
}
yield az_login.main();
yield az_login.executeAzCliCommand(`account show`, false);
yield az_login.executeAzCliCommand(`extension remove -n connectedk8s`, false);
yield az_login.executeAzCliCommand(`extension add -n connectedk8s`, false);
yield az_login.executeAzCliCommand(`extension list`, false);
const runnerTempDirectory = process.env['RUNNER_TEMP']; // Using process.env until the core libs are updated

View File

@ -67,6 +67,7 @@ export async function getArcKubeconfig(): Promise<string> {
}
await az_login.main();
await az_login.executeAzCliCommand(`account show`, false);
await az_login.executeAzCliCommand(`extension remove -n connectedk8s`, false);
await az_login.executeAzCliCommand(`extension add -n connectedk8s`, false);
await az_login.executeAzCliCommand(`extension list`, false);
const runnerTempDirectory = process.env['RUNNER_TEMP']; // Using process.env until the core libs are updated