Browse Source

NSX|P: Fix member creation error message

Change-Id: Ie30f9c1da22ca02d4470167372a76551cde01824
changes/86/783886/1
asarfaty 3 months ago
parent
commit
f9675b2d5b
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      vmware_nsx/services/lbaas/nsx_p/implementation/member_mgr.py

+ 4
- 4
vmware_nsx/services/lbaas/nsx_p/implementation/member_mgr.py View File

@ -37,10 +37,10 @@ class EdgeMemberManagerFromDict(base_mgr.NsxpLoadbalancerBaseManager):
filters=filters)
if floating_ips:
return floating_ips[0]
else:
msg = (_('Member IP %(fip)s is an external IP, and is expected to '
'be a floating IP') % {'fip': fip})
raise n_exc.BadRequest(resource='lbaas-vip', msg=msg)
msg = (_('Member IP %(fip)s is expected to be an external IP with a '
'floating IP') % {'fip': fip})
raise n_exc.BadRequest(resource='lbaas-vip', msg=msg)
def _get_info_from_fip(self, context, fip):
return self._get_fip_object(context, fip)['fixed_ip_address']


Loading…
Cancel
Save