mirror of
https://github.com/Azure/k8s-set-context.git
synced 2026-06-27 09:39:27 +08:00
trying with az login as separate action
This commit is contained in:
+1
-1
@@ -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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user