Stringify $evaluation_interval for validate_re call
Under Puppet 3.7.x, calls to validate_re fail if the parameter is not strictly a string. This change creates a string from $evaluation_interval when passing to validate_re, so the call will pass regardless of if the parameter to the class is specified as string or an integer. Change-Id: I17b82977f21483acf134837a66c5ecebe346cfdf Closes-Bug: 1371235
This commit is contained in:
parent
957c2120d0
commit
a4f20d069e
1
Rakefile
1
Rakefile
@ -4,3 +4,4 @@ require 'puppet-lint/tasks/puppet-lint'
|
|||||||
PuppetLint.configuration.fail_on_warnings = true
|
PuppetLint.configuration.fail_on_warnings = true
|
||||||
PuppetLint.configuration.send('disable_80chars')
|
PuppetLint.configuration.send('disable_80chars')
|
||||||
PuppetLint.configuration.send('disable_class_parameter_defaults')
|
PuppetLint.configuration.send('disable_class_parameter_defaults')
|
||||||
|
PuppetLint.configuration.send('disable_only_variable_string')
|
||||||
|
@ -22,7 +22,7 @@ class ceilometer::alarm::evaluator (
|
|||||||
|
|
||||||
include ceilometer::params
|
include ceilometer::params
|
||||||
|
|
||||||
validate_re($evaluation_interval,'^(\d+)$')
|
validate_re("${evaluation_interval}",'^(\d+)$')
|
||||||
|
|
||||||
Ceilometer_config<||> ~> Service['ceilometer-alarm-evaluator']
|
Ceilometer_config<||> ~> Service['ceilometer-alarm-evaluator']
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user