diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-05-31 13:48:54 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-05-31 13:48:54 -0700 |
commit | f0d241f0f7b9a5a6893a109ea5320c107befc0d0 (patch) | |
tree | e691026b6d05774add17d4428f312e3339fcadcb | |
parent | 11215208fde4e96910e0e848e0311dcbe2cadf9c (diff) | |
download | chef-f0d241f0f7b9a5a6893a109ea5320c107befc0d0.tar.gz |
fix yum versionlock quoting
because we moved to argv-style we need to drop the quotes or else
yum itself sees those quotes in the argument.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | lib/chef/provider/package/yum.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/yum.rb b/lib/chef/provider/package/yum.rb index ab206bb858..1c18e4bfc4 100644 --- a/lib/chef/provider/package/yum.rb +++ b/lib/chef/provider/package/yum.rb @@ -150,7 +150,7 @@ class Chef # support to lock / unlock. The best solution is to write an execute resource which does a only_if `yum versionlock | grep '^pattern`` kind of approach def unlock_package(names, versions) # yum versionlock delete on rhel6 needs the glob nonsense in the following command - yum("-d0", "-e0", "-y", options, "versionlock", "delete", resolved_package_lock_names(names).map { |n| "'*:#{n}-*'" }) + yum("-d0", "-e0", "-y", options, "versionlock", "delete", resolved_package_lock_names(names).map { |n| "*:#{n}-*" }) end private |