You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So when I have this structure it fails: item={'host': 'storage', 'domain': 'googleapis.com', 'ip': '192.168.0.1,192.168.0.2', 'descr': 'some description'}
and works with this: item={'host': 'storage', 'domain': 'googleapis.com', 'ip': '192.168.0.1', 'descr': 'some description'}
I want to create PR to change is_ipv4_address function in core/plugins/module_utils/__impl/addresses.py like this:
def is_ipv4_address(address):
try:
return all(
isinstance(ip_address(addr.strip()), IPv4Address)
for addr in address.split(",")
)
except ValueError:
return False
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, all!
According tho the official documentation here:
https://galaxy.ansible.com/ui/repo/published/pfsensible/core/content/module/pfsense_dns_resolver/?keywords=dns_
ip
isrequired
string and should containIPv4 or IPv6 comma-separated addresses to be returned for the host
.So when I have this structure it fails:
item={'host': 'storage', 'domain': 'googleapis.com', 'ip': '192.168.0.1,192.168.0.2', 'descr': 'some description'}
and works with this:
item={'host': 'storage', 'domain': 'googleapis.com', 'ip': '192.168.0.1', 'descr': 'some description'}
I want to create PR to change
is_ipv4_address
function incore/plugins/module_utils/__impl/addresses.py
like this:Thank you!
Beta Was this translation helpful? Give feedback.
All reactions