From 9f8a5230fab94518972a6bd4bd0050b628961652 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Erwan=20Qu=C3=A9lin?= <erwan.quelin@gmail.com>
Date: Sat, 7 Oct 2017 00:07:51 +0200
Subject: [PATCH] v0.15.1

Fixed issue that prevented to create a new pool (#41)
---
 Unity-Powershell/Public/New-UnityPool.ps1 | 6 +++---
 Unity-Powershell/Unity-Powershell.psd1    | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Unity-Powershell/Public/New-UnityPool.ps1 b/Unity-Powershell/Public/New-UnityPool.ps1
index 15387a1..40f163d 100644
--- a/Unity-Powershell/Public/New-UnityPool.ps1
+++ b/Unity-Powershell/Public/New-UnityPool.ps1
@@ -96,7 +96,7 @@ Function New-UnityPool {
 
     ## Variables
     $URI = '/api/types/pool/instances'
-    $Type = 'Pool'
+    $Obj = 'Pool'
     $StatusCode = 201
 
     $tier = @{
@@ -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
           }
 
@@ -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)
diff --git a/Unity-Powershell/Unity-Powershell.psd1 b/Unity-Powershell/Unity-Powershell.psd1
index b55fbbf..a7c1aa3 100644
--- a/Unity-Powershell/Unity-Powershell.psd1
+++ b/Unity-Powershell/Unity-Powershell.psd1
@@ -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'