summaryrefslogtreecommitdiff
path: root/lib/chef/provider/service/aix.rb
diff options
context:
space:
mode:
authorJulian C. Dunn <jdunn@chef.io>2015-08-06 23:10:00 -0400
committerJulian C. Dunn <jdunn@chef.io>2015-08-06 23:10:00 -0400
commit1cd881fed9af620e51dd9040d3d17b1938ae82ac (patch)
treef6d3a1cdab715949ed258a84b0ed36d0b478b805 /lib/chef/provider/service/aix.rb
parent57836b6f57ae09c5de8f37ca84c0dab7f3e1b06e (diff)
downloadchef-1cd881fed9af620e51dd9040d3d17b1938ae82ac.tar.gz
Don't use shell_out! on "lssrc -g" as it will raise an exception if the service is not a group.
Diffstat (limited to 'lib/chef/provider/service/aix.rb')
-rw-r--r--lib/chef/provider/service/aix.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/service/aix.rb b/lib/chef/provider/service/aix.rb
index 09ed4bbf01..0c95ce2c8e 100644
--- a/lib/chef/provider/service/aix.rb
+++ b/lib/chef/provider/service/aix.rb
@@ -116,7 +116,7 @@ class Chef
end
def is_resource_group?
- so = shell_out!("lssrc -g #{@new_resource.service_name}")
+ so = shell_out("lssrc -g #{@new_resource.service_name}")
if so.exitstatus == 0
Chef::Log.debug("#{@new_resource.service_name} is a group")
@is_resource_group = true