File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -31714,7 +31714,7 @@ async function checkIfWorkspaceExists(workspaceName, resourceGroup) {
3171431714
3171531715 // Check if the workspace exists
3171631716 await _actions_exec__WEBPACK_IMPORTED_MODULE_1__.exec(`az ml workspace show --name ${workspaceName} --resource-group ${resourceGroup}`, [], options);
31717- console.log("✅ Resource Group Found. Output:", output);
31717+ console.log("✅ Workspace Found. Output:", output);
3171831718 return true;
3171931719 } catch (error) {
3172031720 console.log(
@@ -31845,9 +31845,11 @@ try {
3184531845 }
3184631846
3184731847 // Check if the workspace exists
31848- console.log(`🔹 Checking if workspace '${workspaceName}' exists in resource group '${workspaceName }'...`)
31848+ console.log(`🔹 Checking if workspace '${workspaceName}' exists in resource group '${resourceGroup }'...`)
3184931849 ;
31850- const workspaceExists = await checkIfWorkspaceExists(workspaceName, resourceGroup);
31850+ const workspaceExists = await checkIfWorkspaceExists(
31851+ workspaceName, resourceGroup
31852+ );
3185131853
3185231854 if (!workspaceExists) {
3185331855 throw new Error(`Workspace '${workspaceName}' does not exist in resource group '${resourceGroup}'.`);
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ async function checkIfWorkspaceExists(workspaceName, resourceGroup) {
6262
6363 // Check if the workspace exists
6464 await exec . exec ( `az ml workspace show --name ${ workspaceName } --resource-group ${ resourceGroup } ` , [ ] , options ) ;
65- console . log ( "✅ Resource Group Found. Output:" , output ) ;
65+ console . log ( "✅ Workspace Found. Output:" , output ) ;
6666 return true ;
6767 } catch ( error ) {
6868 console . log (
@@ -193,9 +193,11 @@ try {
193193 }
194194
195195 // Check if the workspace exists
196- console . log ( `🔹 Checking if workspace '${ workspaceName } ' exists in resource group '${ workspaceName } '...` )
196+ console . log ( `🔹 Checking if workspace '${ workspaceName } ' exists in resource group '${ resourceGroup } '...` )
197197 ;
198- const workspaceExists = await checkIfWorkspaceExists ( workspaceName , resourceGroup ) ;
198+ const workspaceExists = await checkIfWorkspaceExists (
199+ workspaceName , resourceGroup
200+ ) ;
199201
200202 if ( ! workspaceExists ) {
201203 throw new Error ( `Workspace '${ workspaceName } ' does not exist in resource group '${ resourceGroup } '.` ) ;
You can’t perform that action at this time.
0 commit comments