Skip to content

Commit d74f3e3

Browse files
committed
Merge branch 'DeploymentPipeline' of https://github.com/dataplat/FabricTools into DeploymentPipeline
2 parents c45813a + 9f535a8 commit d74f3e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/Public/Deployment Pipeline/Add-FabricWorkspaceToStage.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function Add-FabricWorkspaceToStage {
5555
Confirm-TokenState
5656

5757
# Step 2: Construct the API URL
58-
$apiEndpointUrl = "deploymentPipelines/$DeploymentPipelineId/stages/$StageId/assignWorkspace"
58+
$apiEndpointUrl = ("deploymentPipelines/{0}/stages/{1}/assignWorkspace" -f $DeploymentPipelineId, $StageId)
5959
Write-Message -Message "API Endpoint: $apiEndpointUrl" -Level Debug
6060

6161
# Step 3: Construct the request body
@@ -69,7 +69,7 @@ function Add-FabricWorkspaceToStage {
6969

7070
# Step 5: Return results
7171
Write-Message -Message "Successfully assigned workspace to deployment pipeline stage." -Level Info
72-
return $response
72+
$response
7373
} catch {
7474
# Step 6: Error handling
7575
$errorDetails = $_.Exception.Message

0 commit comments

Comments
 (0)