From ee7be9b7ad8157030911570783ecbe28b79fa107 Mon Sep 17 00:00:00 2001 From: Michele Baldessari Date: Tue, 6 Feb 2018 11:44:12 +0100 Subject: [PATCH] Do not fail fencing configuration when instanceha is disabled Right now we fail like this if fencing is enabled but instanceha is not: "Error: Evaluation Error: Error while evaluating a Function Call, Could not find data item compute_instanceha_short_node_names in any Hiera data file and no default supplied at /etc/puppet/modules/tripleo/manifests/fencing.pp:61:13 on node controller-0.localdomain" Change-Id: I36691997bffc56cb4fe17b2f762e4d44d71dfe50 Closes-Bug: #1747643 --- manifests/fencing.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/fencing.pp b/manifests/fencing.pp index fa9ac3cda..5f33cf8a1 100644 --- a/manifests/fencing.pp +++ b/manifests/fencing.pp @@ -58,7 +58,7 @@ class tripleo::fencing( 'try_sleep' => $try_sleep, } # We will create stonith levels *only* if the node is a compute instanceha one - if member(hiera('compute_instanceha_short_node_names'), downcase($::hostname)) { + if member(hiera('compute_instanceha_short_node_names', []), downcase($::hostname)) { $is_compute_instanceha_node = true } else { $is_compute_instanceha_node = false