diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-11-28 09:51:50 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2017-11-28 09:51:50 -0800 |
commit | 260486f8e0d3ecd1d0e653f31e9241065d2d329d (patch) | |
tree | ed931d9bd5ab0e028232fa01a9a981c1ddc2055d /lib/chef/node_map.rb | |
parent | 493947028e8560e86a014aced4273f509a678c31 (diff) | |
download | chef-260486f8e0d3ecd1d0e653f31e9241065d2d329d.tar.gz |
fix NodeMap to not throw exceptions on platform_versionslcg/nodemap-platform-versions
Chef::Version and VersionConstraint are for x.y/x.y.z cookbook
versions, and are always wrong for anything other than
cookbooks.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/node_map.rb')
-rw-r--r-- | lib/chef/node_map.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/node_map.rb b/lib/chef/node_map.rb index 7a1a09ae24..25b1f57d44 100644 --- a/lib/chef/node_map.rb +++ b/lib/chef/node_map.rb @@ -143,7 +143,7 @@ class Chef filter_values.empty? || Array(filter_values).any? do |v| - Chef::VersionConstraint::Platform.new(v).include?(value) + Gem::Requirement.new(v).satisfied_by?(Gem::Version.new(value)) end end |