NSX|P: Fix member creation error message

Change-Id: Ie30f9c1da22ca02d4470167372a76551cde01824
This commit is contained in:
asarfaty 2021-03-29 10:17:28 +02:00
parent 6680d270ed
commit 3d26420d69
1 changed files with 2 additions and 2 deletions

View File

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