diff options
author | Jordan Evans <jordane@osuosl.org> | 2015-12-28 11:08:01 -0800 |
---|---|---|
committer | Jordan Evans <jordane@osuosl.org> | 2015-12-28 11:08:33 -0800 |
commit | edfad5cf06d4460baaab1aa31fbb7317939c8a85 (patch) | |
tree | e4493a4cdd62fc02344952411d97603d93bb77df | |
parent | 6e5f3c34a060787e681cc94e44f5b5dc0523e783 (diff) | |
download | chef-edfad5cf06d4460baaab1aa31fbb7317939c8a85.tar.gz |
Use platform version parser to parse supports in metadata
Previously supports was using the cookbook version parser, which would
not correctly parse all platform versions.
-rw-r--r-- | lib/chef/cookbook/metadata.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/cookbook/metadata.rb b/lib/chef/cookbook/metadata.rb index e9509be38c..0892d85749 100644 --- a/lib/chef/cookbook/metadata.rb +++ b/lib/chef/cookbook/metadata.rb @@ -746,7 +746,7 @@ OBSOLETED end def validate_version_constraint(caller_name, dep_name, constraint_str) - Chef::VersionConstraint.new(constraint_str) + Chef::VersionConstraint::Platform.new(constraint_str) rescue Chef::Exceptions::InvalidVersionConstraint => e Log.debug(e) |