diff options
author | Davide Cavalca <dcavalca@fb.com> | 2016-02-22 15:47:01 -0800 |
---|---|---|
committer | Davide Cavalca <dcavalca@fb.com> | 2016-02-22 15:47:01 -0800 |
commit | 934d8bfca574fd59025727e1e4c95ab03b8b0612 (patch) | |
tree | 65a9a596fc8cd0772b8fa4d60fd813a2cd3f533d /lib | |
parent | 279b0a57a2239d7b23b300af6ab651c5bf7bce8a (diff) | |
download | chef-934d8bfca574fd59025727e1e4c95ab03b8b0612.tar.gz |
is_masked? fix
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/provider/service/systemd.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/service/systemd.rb b/lib/chef/provider/service/systemd.rb index f24d7de5f2..0fcf075f1f 100644 --- a/lib/chef/provider/service/systemd.rb +++ b/lib/chef/provider/service/systemd.rb @@ -140,7 +140,7 @@ class Chef::Provider::Service::Systemd < Chef::Provider::Service::Simple def is_masked? s = shell_out("#{systemctl_path} is-enabled #{new_resource.service_name}") - s..exitstatus != 0 && s.stdout.include?("masked", "masked-runtime") + s..exitstatus != 0 && s.stdout.include?("masked") end private |