diff options
author | Robby Dyer <rdyer@tropo.com> | 2014-07-30 16:36:26 -0400 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-08-18 13:40:45 -0700 |
commit | a75e34ce89bb79cc5da493200cdb0c26d5912566 (patch) | |
tree | 4332d2cd6a66225a78fce598ad4acac03fb0532d /lib/chef/provider/service/redhat.rb | |
parent | b454099a0477c7bef8bbff46f1a514a7a75223db (diff) | |
download | chef-a75e34ce89bb79cc5da493200cdb0c26d5912566.tar.gz |
Actually, we need to return empty string if run_levels if empty
Diffstat (limited to 'lib/chef/provider/service/redhat.rb')
-rw-r--r-- | lib/chef/provider/service/redhat.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/service/redhat.rb b/lib/chef/provider/service/redhat.rb index bd7b307c78..16b82c16d7 100644 --- a/lib/chef/provider/service/redhat.rb +++ b/lib/chef/provider/service/redhat.rb @@ -81,7 +81,7 @@ class Chef end def levels - @run_levels.nil? ? "" : "--level #{@run_levels.join('')} " + (@run_levels.nil? or @run_levels.empty?) ? "" : "--level #{@run_levels.join('')} " end def enable_service() |