mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
@@ -220,7 +220,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
||||
not wrap_async, # async does not support pipelining
|
||||
self._play_context.become_method != 'su', # su does not work with pipelining,
|
||||
# FIXME: we might need to make become_method exclusion a configurable list
|
||||
]:
|
||||
]:
|
||||
if not condition:
|
||||
return False
|
||||
|
||||
|
||||
@@ -178,9 +178,9 @@ def _private_query(v, value):
|
||||
|
||||
def _public_query(v, value):
|
||||
v_ip = netaddr.IPAddress(str(v.ip))
|
||||
if v_ip.is_unicast() and not v_ip.is_private() and \
|
||||
not v_ip.is_loopback() and not v_ip.is_netmask() and \
|
||||
not v_ip.is_hostmask():
|
||||
if (v_ip.is_unicast() and not v_ip.is_private() and
|
||||
not v_ip.is_loopback() and not v_ip.is_netmask() and
|
||||
not v_ip.is_hostmask()):
|
||||
return value
|
||||
|
||||
def _revdns_query(v):
|
||||
|
||||
Reference in New Issue
Block a user