From 758b80f6b8f3eaefe2522b4775d1e07782ded7b2 Mon Sep 17 00:00:00 2001 From: equelin Date: Mon, 14 Nov 2016 17:39:32 +0100 Subject: [PATCH] -server parameter was missing for the wait-task function --- Modules/VMCPFunctions.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/VMCPFunctions.psm1 b/Modules/VMCPFunctions.psm1 index 921e8e4..4f9b16e 100644 --- a/Modules/VMCPFunctions.psm1 +++ b/Modules/VMCPFunctions.psm1 @@ -313,7 +313,7 @@ function Set-VMCPSettings { # Wait for the reconfiguration task to finish to show the result If ($Task) { $TaskID = "Task-" + $($Task.Value) - Get-Task -Id $TaskID | Wait-Task | Out-Null + Get-Task -Id $TaskID -Server $Server | Wait-Task | Out-Null Get-VMCPSettings -Cluster $CL -Server $Server } }