From 278bc1f83de858b52972b8455fde3f97fa35d8fe Mon Sep 17 00:00:00 2001
From: "Alexander \"Ace\" Olofsson" <ace@haxalot.com>
Date: Mon, 11 Jun 2018 19:45:26 +0200
Subject: [PATCH] Implment the New-WdsClient comment

---
 app/models/wds_server.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/models/wds_server.rb b/app/models/wds_server.rb
index 5abf793..42992eb 100644
--- a/app/models/wds_server.rb
+++ b/app/models/wds_server.rb
@@ -79,7 +79,7 @@ class WdsServer < ApplicationRecord
     ensure_unattend(host)
 
     connection.shell(:powershell) do |sh|
-      # New-WdsClient -DeviceID '#{host.mac.upcase.delete ':'}' -DeviceName '#{host.name}' -WdsClientUnattend '#{unattend_file(host)}' -BootImagePath 'boot\\#{wdsify_architecture(host.architecture)}\\images\\#{(host.wds_boot_image || boot_images.first).file_name}' -PxePromptPolicy 'NoPrompt'
+      sh.run("New-WdsClient -DeviceID '#{host.mac.upcase.delete ':'}' -DeviceName '#{host.name}' -WdsClientUnattend '#{unattend_file(host)}' -BootImagePath 'boot\\#{wdsify_architecture(host.architecture)}\\images\\#{(host.wds_boot_image || boot_images.first).file_name}' -PxePromptPolicy 'NoPrompt'")
     end
   end
 
-- 
GitLab