Puppet error if utilization property of cs_primitive not set.
Closed this issue · 2 comments
ctavan commented
I followed the example to set up some primitives with the current master of puppetlabs-corosync.
Unless I explicitly define the sample primitive as follows:
cs_primitive { 'nginx_vip':
primitive_class => 'ocf',
primitive_type => 'IPaddr2',
provided_by => 'heartbeat',
parameters => { 'ip' => '172.16.210.100', 'cidr_netmask' => '24' },
operations => { 'monitor' => { 'interval' => '10s' } },
utilization => {},
}
I get the following error:
err: Cs_primitive[nginx_vip]: Could not evaluate: undefined method `empty?' for nil:NilClass
The key is to explicitly define
utilization => {},
The error happens here and I suppose this was introduced with #41 however I don't really understand why the same problem doesn't exist for the metadata
attribute?
Using puppet 2.6.
ctavan commented
Works great! Thanks for this quick fix.