From c83e5d08907e175492b651aa4e0395a51a5e03e6 Mon Sep 17 00:00:00 2001 From: Paul Durivage Date: Thu, 19 Jun 2014 10:26:59 -0500 Subject: [PATCH] Ensure state is present if no value provided --- windows/win_feature.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/windows/win_feature.ps1 b/windows/win_feature.ps1 index cbb73789f48..4391de5eef3 100644 --- a/windows/win_feature.ps1 +++ b/windows/win_feature.ps1 @@ -58,6 +58,9 @@ Elseif ($state -eq "absent") { Fail-Json $_.Exception.Message } } +Else { + $state = "present" +} $feature_results = @() ForEach ($item in $result.FeatureResult) {