Skip to content
This repository has been archived by the owner on Nov 4, 2021. It is now read-only.

Commit

Permalink
v0.15.1
Browse files Browse the repository at this point in the history
Fixed issue that prevented to create a new pool (#41)
  • Loading branch information
equelin authored Oct 6, 2017
1 parent 115d404 commit 9f8a523
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Unity-Powershell/Public/New-UnityPool.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Function New-UnityPool {

## Variables
$URI = '/api/types/pool/instances'
$Type = 'Pool'
$Obj = 'Pool'
$StatusCode = 201

$tier = @{
Expand Down Expand Up @@ -234,7 +234,7 @@ Function New-UnityPool {
Write-Verbose "URL: $URL"

#Sending the request
If ($pscmdlet.ShouldProcess($Sess.Name,"Create $Type $n")) {
If ($pscmdlet.ShouldProcess($Sess.Name,"Create $Obj $n")) {
$request = Send-UnityRequest -uri $URL -Session $Sess -Method 'POST' -Body $Body
}

Expand All @@ -245,7 +245,7 @@ Function New-UnityPool {
#Formating the result. Converting it from JSON to a Powershell object
$results = ($request.content | ConvertFrom-Json).content

Write-Verbose "$Type with the ID $($results.id) has been created"
Write-Verbose "$Obj with the ID $($results.id) has been created"

Get-UnityPool -Session $Sess -ID $results.id
} # End If ($request.StatusCode -eq $StatusCode)
Expand Down
2 changes: 1 addition & 1 deletion Unity-Powershell/Unity-Powershell.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'Unity-Powershell.psm1'

# Version number of this module.
ModuleVersion = '0.15.0'
ModuleVersion = '0.15.1'

# ID used to uniquely identify this module
GUID = '586e7e62-9753-4fd6-91b6-89d8d89d69a2'
Expand Down

0 comments on commit 9f8a523

Please sign in to comment.