We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dc7185 commit d231c60Copy full SHA for d231c60
lib/puppet/provider/service/init.rb
@@ -19,12 +19,9 @@ def self.defpath
19
end
20
21
# Debian and Ubuntu should use the Debian provider.
22
+ confine :false => ['Debian', 'Ubuntu'].include?(Puppet.runtime[:facter].value('operatingsystem'))
23
# RedHat systems should use the RedHat provider.
- confine :true => begin
24
- os = Puppet.runtime[:facter].value(:operatingsystem)
25
- family = Puppet.runtime[:facter].value(:osfamily)
26
- !(os == 'Debian' || os == 'Ubuntu' || family == 'RedHat')
27
- end
+ confine :false => Puppet.runtime[:facter].value('osfamily') == 'RedHat'
28
29
# We can't confine this here, because the init path can be overridden.
30
#confine :exists => defpath
0 commit comments