Fix strict variable errors in ceilometer::agent::polling

Make sure all variables are defined.

Change-Id: Iaa352f73986be4f79ffac0838bedc0f2eaae01d3
(cherry picked from commit 5d63e7bc79)
This commit is contained in:
Mathieu Gagné 2017-03-30 12:19:04 -04:00 committed by Mathieu Gagné
parent c36add994d
commit f81b282763
1 changed files with 6 additions and 0 deletions

View File

@ -56,6 +56,8 @@ class ceilometer::agent::polling (
if $central_namespace {
$central_namespace_name = 'central'
} else {
$central_namespace_name = ''
}
if $compute_namespace {
@ -78,10 +80,14 @@ class ceilometer::agent::polling (
ceilometer_config {
'compute/instance_discovery_method': value => $instance_discovery_method,
}
} else {
$compute_namespace_name = ''
}
if $ipmi_namespace {
$ipmi_namespace_name = 'ipmi'
} else {
$ipmi_namespace_name = ''
}
if $manage_service {