From 56c553c55d75c995ad5a3e4bed590c3fc3679813 Mon Sep 17 00:00:00 2001 From: "Patryk D. Cichy" Date: Wed, 10 Apr 2019 13:50:08 +0200 Subject: [PATCH] Proper handling of lower case name for InternalLbVm Service Provider (#55087) --- lib/ansible/modules/cloud/cloudstack/cs_physical_network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/cloudstack/cs_physical_network.py b/lib/ansible/modules/cloud/cloudstack/cs_physical_network.py index dd796f7ac6..da4a6b67f4 100644 --- a/lib/ansible/modules/cloud/cloudstack/cs_physical_network.py +++ b/lib/ansible/modules/cloud/cloudstack/cs_physical_network.py @@ -460,7 +460,7 @@ def main(): for nsp_name in nsps_enabled: if nsp_name.lower() in ['virtualrouter', 'vpcvirtualrouter']: acs_network.set_vrouter_element_state(enabled=True, nsp_name=nsp_name) - elif nsp_name == 'internallbvm': + elif nsp_name.lower() == 'internallbvm': acs_network.set_loadbalancer_element_state(enabled=True, nsp_name=nsp_name) acs_network.update_nsp(name=nsp_name, state='Enabled')