netaddr.IPAddress used by property address will if route domain other than default is used.

This fix is for IPv4 addresses only.
pull/46146/head
Peter Söderlind 6 years ago committed by Matt Clay
parent 5ee5e4a35c
commit e23eefe60e

@ -433,7 +433,7 @@ class ModuleParameters(Parameters):
elif self._values['address'] == 'any6':
return 'any6'
try:
addr = netaddr.IPAddress(self._values['address'])
addr = netaddr.IPAddress(self._values['address'].split('%')[0])
return str(addr)
except netaddr.AddrFormatError:
raise F5ModuleError(

Loading…
Cancel
Save