From 822456a736c1c365a5bf859931f0f57c18fab075 Mon Sep 17 00:00:00 2001 From: kinarashah Date: Thu, 15 Mar 2018 10:48:55 -0700 Subject: [PATCH] lowercase region and env in portRule for network policy --- .../java/io/cattle/platform/core/util/LBMetadataUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/iaas/model/src/main/java/io/cattle/platform/core/util/LBMetadataUtil.java b/code/iaas/model/src/main/java/io/cattle/platform/core/util/LBMetadataUtil.java index 756946b2e2..25812f792c 100644 --- a/code/iaas/model/src/main/java/io/cattle/platform/core/util/LBMetadataUtil.java +++ b/code/iaas/model/src/main/java/io/cattle/platform/core/util/LBMetadataUtil.java @@ -49,8 +49,8 @@ public MetadataPortRule(PortRule portRule, Service service, Stack stack, boolean this.backend_name = portRule.getBackendName(); this.priority = portRule.getPriority(); this.selector = portRule.getSelector(); - this.region = portRule.getRegion(); - this.environment = portRule.getEnvironment(); + this.region = StringUtils.lowerCase(portRule.getRegion()); + this.environment = StringUtils.lowerCase(portRule.getEnvironment()); this.weight = portRule.getWeight(); if (this.weight == null && defaultWeight) { this.weight = 1;