summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-05-30 19:04:39 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-05-30 19:04:39 -0700
commit07e9ce2574c0cba3f812c7c7b891d23aca58e67c (patch)
tree4377a3a5bba5d538a9ab6b24b347567c790a907e
parent4a9f72b77b0285dceb391f627f51c2e537802825 (diff)
downloadchef-07e9ce2574c0cba3f812c7c7b891d23aca58e67c.tar.gz
fix dnf splat argslcg/remove-use-of-a_to_s
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/provider/package/dnf.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/provider/package/dnf.rb b/lib/chef/provider/package/dnf.rb
index cb55919a14..b18a284116 100644
--- a/lib/chef/provider/package/dnf.rb
+++ b/lib/chef/provider/package/dnf.rb
@@ -95,10 +95,10 @@ class Chef
def install_package(names, versions)
if new_resource.source
- dnf(options, "-y install", new_resource.source)
+ dnf(options, "-y", "install", new_resource.source)
else
resolved_names = names.each_with_index.map { |name, i| available_version(i).to_s unless name.nil? }
- dnf(options, "-y install", resolved_names)
+ dnf(options, "-y", "install", resolved_names)
end
flushcache
end
@@ -108,7 +108,7 @@ class Chef
def remove_package(names, versions)
resolved_names = names.each_with_index.map { |name, i| installed_version(i).to_s unless name.nil? }
- dnf(options, "-y remove", resolved_names)
+ dnf(options, "-y", "remove", resolved_names)
flushcache
end