diff options
author | Sangmesh Ausekar <58020082+sanga1794@users.noreply.github.com> | 2020-03-17 11:05:15 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-17 11:05:15 +0530 |
commit | 28c0bd4bf191eb922afa9360f1336b1d210f85b6 (patch) | |
tree | 22395ae17a5426a9b33b03b869f1f1cc60dc0797 | |
parent | 06ae8a4f499f27a409b1d7e52f81c0a83cfaa33a (diff) | |
download | chef-28c0bd4bf191eb922afa9360f1336b1d210f85b6.tar.gz |
Update lib/chef/provider/package/powershell.rb
Co-Authored-By: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/provider/package/powershell.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/powershell.rb b/lib/chef/provider/package/powershell.rb index c531f57d7b..01fe603363 100644 --- a/lib/chef/provider/package/powershell.rb +++ b/lib/chef/provider/package/powershell.rb @@ -36,7 +36,7 @@ class Chef def define_resource_requirements super - if node["languages"] && node["languages"]["powershell"] && node["languages"]["powershell"]["version"].strip.to_i < 5 + if powershell_version < 5 raise "Minimum installed PowerShell Version required is 5" end |