summaryrefslogtreecommitdiff
path: root/lib/chef/provider/service/solaris.rb
diff options
context:
space:
mode:
authormarkgibbons <mark.gibbons@nordstrom.com>2014-06-09 13:43:31 -0700
committermarkgibbons <mark.gibbons@nordstrom.com>2014-06-09 13:43:31 -0700
commite89ac8082f57648ff4d45abf8e66dc4252a83106 (patch)
treee399628ed298a359ee6de698c89c170d48bfa868 /lib/chef/provider/service/solaris.rb
parent97088f458afffcc73d49c53c594f08bf969084aa (diff)
downloadchef-e89ac8082f57648ff4d45abf8e66dc4252a83106.tar.gz
CHEF-5347: Use shell_out! with returns [0, 1].
Diffstat (limited to 'lib/chef/provider/service/solaris.rb')
-rw-r--r--lib/chef/provider/service/solaris.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/service/solaris.rb b/lib/chef/provider/service/solaris.rb
index 6672b0f084..1eb9884f2a 100644
--- a/lib/chef/provider/service/solaris.rb
+++ b/lib/chef/provider/service/solaris.rb
@@ -69,7 +69,7 @@ class Chef
end
def service_status
- status = shell_out("#{@status_command} #{@current_resource.service_name}")
+ status = shell_out!("#{@status_command} #{@current_resource.service_name}", returns: [0, 1])
status.stdout.each_line do |line|
case line
when /state\s+online/