1 From e3e4a9cf57d5d7da6914b31527188eff7e290238 Mon Sep 17 00:00:00 2001
2 From: Feng Pan <fpan@redhat.com>
3 Date: Wed, 17 May 2017 11:39:31 -0400
4 Subject: [PATCH] Make sure overlay_ip_version is treated as string
6 puppet throws error if overlay_ip_version is passed in through hiera
7 as an integer. We should make sure this variable is treated as string
12 Change-Id: I1c034e8018c959672b106e2d57992cf93b945d8a
13 Signed-off-by: Feng Pan <fpan@redhat.com>
16 diff --git a/manifests/plugins/ml2.pp b/manifests/plugins/ml2.pp
17 index d931e72..b943593 100644
18 --- a/manifests/plugins/ml2.pp
19 +++ b/manifests/plugins/ml2.pp
21 warning ('supported_pci_vendor_devs is deprecated, has no effect and will be removed in a future release.')
24 - if !is_service_default($overlay_ip_version) and !($overlay_ip_version in [4, 6]) {
25 + if !is_service_default($overlay_ip_version) and !("${overlay_ip_version}" in ['4', '6']) {
26 fail('Invalid IP version for overlay_ip_version')