summaryrefslogtreecommitdiff
path: root/lib/chef/provider
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-05-30 15:17:32 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-05-30 15:17:32 -0700
commita2865ad2ae40ec78ecdfba6d58853df51699b8eb (patch)
tree9876350572357844568ac5e18c6b7ab97e3760df /lib/chef/provider
parent087827cc0217273f8e33ca2050b27285ff8bc127 (diff)
downloadchef-a2865ad2ae40ec78ecdfba6d58853df51699b8eb.tar.gz
convert a_to_s to shell_out_compact in DNF/yum
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/provider')
-rw-r--r--lib/chef/provider/package/dnf.rb4
-rw-r--r--lib/chef/provider/package/yum.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/provider/package/dnf.rb b/lib/chef/provider/package/dnf.rb
index 90a5596727..cb55919a14 100644
--- a/lib/chef/provider/package/dnf.rb
+++ b/lib/chef/provider/package/dnf.rb
@@ -1,5 +1,5 @@
#
-# Copyright:: Copyright 2016-2017, Chef Software Inc.
+# Copyright:: Copyright 2016-2018, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -167,7 +167,7 @@ class Chef
end
def dnf(*args)
- shell_out_with_timeout!(a_to_s("dnf", *args))
+ shell_out_compact_timeout!("dnf", *args)
end
def safe_version_array
diff --git a/lib/chef/provider/package/yum.rb b/lib/chef/provider/package/yum.rb
index 805a74d013..983d7149c1 100644
--- a/lib/chef/provider/package/yum.rb
+++ b/lib/chef/provider/package/yum.rb
@@ -260,7 +260,7 @@ class Chef
end
def yum(*args)
- shell_out_with_timeout!(a_to_s(yum_binary, *args))
+ shell_out_compact_timeout!(yum_binary, *args)
end
def safe_version_array