Skip to content

Commit

Permalink
Bugfix/issue5 (#6)
Browse files Browse the repository at this point in the history
* fixing an issue and renaming files

* version bump
  • Loading branch information
azurekid authored Aug 13, 2023
1 parent 97d40e9 commit 3a590c5
Show file tree
Hide file tree
Showing 15 changed files with 6 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/AzWorkspaceManager.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'AzWorkspaceManager.psm1'

# Version number of this module.
ModuleVersion = '0.2.0'
ModuleVersion = '0.2.1'

# Supported PSEditions
# CompatiblePSEditions = @('Core')
Expand Down
7 changes: 5 additions & 2 deletions src/Public/Add-AzWorkspaceManagerAssignment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,16 @@ function Add-AzWorkspaceManagerAssignment {
)
}
}

$payload = @{
properties = @{
targetResourceName = $GroupName
items = @($items)
}
}
write-Output $payload | ConvertTo-Json -Depth 10

if ($items ) {
$payload.properties.items = @($items)
}

if ($SessionVariables.workspaceManagerConfiguration -eq 'Enabled') {
try {
Expand Down

0 comments on commit 3a590c5

Please sign in to comment.