trying with az login as separate action

This commit is contained in:
Atharva Mulmuley
2021-05-04 12:36:21 +05:30
parent aff8b97341
commit b7a1b9b564
5 changed files with 43 additions and 3 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ export async function getArcKubeconfig(): Promise<string> {
if(!clusterName){
throw Error("'clusterName' is not passed for arc cluster.")
}
await az_login.main();
//await az_login.main();
await az_login.executeAzCliCommand(`account show`, false);
try{
await az_login.executeAzCliCommand(`extension remove -n connectedk8s`, false);
+1 -1
View File
@@ -133,7 +133,7 @@ export async function executeAzCliCommand(
silent?: boolean,
execOptions: any = {},
args: any = []) {
azPath = await io.which("az", true);
execOptions.silent = !!silent;
try {
await exec.exec(`"${azPath}" ${command}`, args, execOptions);