diff options
author | Tim Smith <tsmith@chef.io> | 2018-07-05 22:59:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-05 22:59:33 -0700 |
commit | ffafb60fdb3eda6dd9c40e8e30b88b8623a4cce8 (patch) | |
tree | ffa7d40b528f8bc51d690e34df1ed8e3f7eb1e4d | |
parent | 9d18c739add5ecf992ce790f069419867c386db9 (diff) | |
parent | f5555cfd1ccdbf709aa4b56499f558361308bcec (diff) | |
download | chef-ffafb60fdb3eda6dd9c40e8e30b88b8623a4cce8.tar.gz |
Merge pull request #7424 from chef/window_powershell_ps_3
windows_feature_powershell: Don't error on PowerShell 3.0
-rw-r--r-- | lib/chef/resource/windows_feature_powershell.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/windows_feature_powershell.rb b/lib/chef/resource/windows_feature_powershell.rb index daee0e9d34..c06e380675 100644 --- a/lib/chef/resource/windows_feature_powershell.rb +++ b/lib/chef/resource/windows_feature_powershell.rb @@ -149,7 +149,7 @@ class Chef # @raise [RuntimeError] Raise if powershell is < 3.0 def raise_on_old_powershell # be super defensive about the powershell lang plugin not being there - return if node["languages"] && node["languages"]["powershell"] && node["languages"]["powershell"]["version"].to_i > 3 + return if node["languages"] && node["languages"]["powershell"] && node["languages"]["powershell"]["version"].to_i >= 3 raise "The windows_feature_powershell resource requires PowerShell 3.0 or later. Please install PowerShell 3.0+ before running this resource." if powershell_version < 3 end |