puppet-ntp icon indicating copy to clipboard operation
puppet-ntp copied to clipboard

Service is not subscribed to the default config file if it exists

Open theosotr opened this issue 6 years ago • 3 comments

I think that the correct condition is

$service_subscribe = defined(File[$defaults_file]) ? {
      true    => [ File[$config_file], File[$defaults_file], ],
      default => File[$config_file],
}

because the $defaults_file never evaluates to true.

theosotr avatar Jan 19 '19 08:01 theosotr

Hi, any updates?

theosotr avatar Feb 14 '19 16:02 theosotr

I'll first need to fix the tests and then I'll check this commit. Hopefully I'll get this done over the weekend

saz avatar Feb 15 '19 22:02 saz

For more details about this bug, please check here:

https://puppet.com/docs/puppet/5.3/lang_conditional.html#selectors

theosotr avatar Aug 17 '19 11:08 theosotr