You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
newproperty(:service_notification_options) do
desc 'Nagios configuration file parameter.'
validate do |value|
if !value.match?(/^([wucrfsn](,[wucrfsn])*)?$/) then
raise ArgumentError, "service_notification_options must be a comma separated list of 'w', 'u', 'c', 'r', 'f', 's', 'n' (#{value} provided)"
end
end
end
end
I think they are not exclusive. #20 is only valid when options could be provided as an array (you could use some of them separated by ,) which is not always possible. There are properties that are atomic.
Hi,
I'm deploying a custom type to configure nagios contacts with augeas.
If I'm understanding well, according to http://augeasproviders.com/documentation/development.html if I want to be to remove a property I should use the
:rm_node
option in the accesor.In my type I have the property defined as:
and in the provider I get:
but with this code I have tried to remove the
service_notification_options
of a contact, but I can't. The contact in my file is:I have tried not using the
service_notification_options
in the puppet resource and passing an empty value, like:or
How is the correct way to handle property removal? Or do I have to code myself the writer for the property?
The text was updated successfully, but these errors were encountered: