dpeters / puppet-opsview

Puppet types/providers to support Opsview resources
12 stars 10 forks source link

Set more default values in types #24

Closed antaflos closed 10 years ago

antaflos commented 10 years ago

Specifically set array properties by default to [](the empty array) and notification_interval to 0. Don't set a default for hosttemplate's managementurls, though; that doesn't currently work, because the managementurls object should be a list of hashes with "name" and "url" keys, but that doesn't seem to be taken into account by the hosttemplate provider.

antaflos commented 10 years ago

This should probably be viewed or merged in combination with #26 where I implement proper handling of management URLs in host templates.