Proper handling of lower case name for InternalLbVm Service Provider (#55087)

This commit is contained in:
Patryk D. Cichy 2019-04-10 13:50:08 +02:00 committed by ansibot
parent c411883618
commit 56c553c55d

View file

@ -460,7 +460,7 @@ def main():
for nsp_name in nsps_enabled: for nsp_name in nsps_enabled:
if nsp_name.lower() in ['virtualrouter', 'vpcvirtualrouter']: if nsp_name.lower() in ['virtualrouter', 'vpcvirtualrouter']:
acs_network.set_vrouter_element_state(enabled=True, nsp_name=nsp_name) 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.set_loadbalancer_element_state(enabled=True, nsp_name=nsp_name)
acs_network.update_nsp(name=nsp_name, state='Enabled') acs_network.update_nsp(name=nsp_name, state='Enabled')