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) {
31714
31714
31715
31715
// Check if the workspace exists
31716
31716
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);
31718
31718
return true;
31719
31719
} catch (error) {
31720
31720
console.log(
@@ -31845,9 +31845,11 @@ try {
31845
31845
}
31846
31846
31847
31847
// 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 }'...`)
31849
31849
;
31850
- const workspaceExists = await checkIfWorkspaceExists(workspaceName, resourceGroup);
31850
+ const workspaceExists = await checkIfWorkspaceExists(
31851
+ workspaceName, resourceGroup
31852
+ );
31851
31853
31852
31854
if (!workspaceExists) {
31853
31855
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) {
62
62
63
63
// Check if the workspace exists
64
64
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 ) ;
66
66
return true ;
67
67
} catch ( error ) {
68
68
console . log (
@@ -193,9 +193,11 @@ try {
193
193
}
194
194
195
195
// 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 } '...` )
197
197
;
198
- const workspaceExists = await checkIfWorkspaceExists ( workspaceName , resourceGroup ) ;
198
+ const workspaceExists = await checkIfWorkspaceExists (
199
+ workspaceName , resourceGroup
200
+ ) ;
199
201
200
202
if ( ! workspaceExists ) {
201
203
throw new Error ( `Workspace '${ workspaceName } ' does not exist in resource group '${ resourceGroup } '.` ) ;
You can’t perform that action at this time.
0 commit comments