saz/puppet-resolv_conf — pull request #5 by jhoblitt (2012-11-06 20:29:54+00:00)
Title: allow resolv_conf class to be instantiated without the options parameter

The present default value for class { 'resolv_conf': options => ... } is undef.
This causes the following error in resolv.conf.erb when no options parameter is set in the class definition.

Failed to parse template resolv_conf/resolv.conf.erb:
Filepath: /etc/puppet/modules/resolv_conf/templates/resolv.conf.erb
Line: 10
Detail: undefined method `empty?' for :undef:Symbol
at /etc/puppet/modules/resolv_conf/manifests/config.pp:13 on node ...

This patch fixes this by changing the default value for options to an empty
list ([]) although a more robust solution may be to refactor the ERB template.