diff options
author | jessica <jessica@opscode.com> | 2012-02-01 12:30:50 -0800 |
---|---|---|
committer | jtimberman <joshua@opscode.com> | 2012-02-13 12:33:22 -0700 |
commit | 1d07235ee19b8a244efada48ea4312217dee43a9 (patch) | |
tree | e1b52d68470af1e8810e066dcf56598885105eab | |
parent | a47579700bcceb1e62475b72983619cac8dc372a (diff) | |
download | mixlib-shellout-1d07235ee19b8a244efada48ea4312217dee43a9.tar.gz |
COOK-1007- windows_feature does not work to remove features with dism
-rw-r--r-- | providers/feature_dism.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/feature_dism.rb b/providers/feature_dism.rb index 7c35ed2..4f24480 100644 --- a/providers/feature_dism.rb +++ b/providers/feature_dism.rb @@ -33,7 +33,7 @@ end def installed? @installed ||= begin cmd = shell_out("#{dism} /online /Get-Features", {:returns => [0,42,127]}) - cmd.stderr.empty? && (cmd.stdout =~ /^Feature Name : #{@new_resource.feature_name}$\n^State : Enabled$/i) + cmd.stderr.empty? && (cmd.stdout =~ /^Feature Name : #{@new_resource.feature_name}.?$\n^State : Enabled.?$/i) end end |