mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
iptables_state: fix broken query of async_status
result (#2671)
* use get() rather than querying the key directly * add a changelog fragment * re-enable CI tests * Update changelog fragment Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
b281d3d699
commit
f09c39b71e
3 changed files with 7 additions and 2 deletions
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- "iptables_state - fix a broken query of ``async_status`` result
|
||||||
|
with current ansible-core development version
|
||||||
|
(https://github.com/ansible-collections/community.general/issues/2627,
|
||||||
|
https://github.com/ansible-collections/community.general/pull/2671)."
|
|
@ -52,7 +52,7 @@ class ActionModule(ActionBase):
|
||||||
module_args=module_args,
|
module_args=module_args,
|
||||||
task_vars=task_vars,
|
task_vars=task_vars,
|
||||||
wrap_async=False)
|
wrap_async=False)
|
||||||
if async_result['finished'] == 1:
|
if async_result.get('finished', 0) == 1:
|
||||||
break
|
break
|
||||||
time.sleep(min(1, timeout))
|
time.sleep(min(1, timeout))
|
||||||
|
|
||||||
|
|
|
@ -5,4 +5,3 @@ skip/freebsd # no iptables/netfilter (Linux specific)
|
||||||
skip/osx # no iptables/netfilter (Linux specific)
|
skip/osx # no iptables/netfilter (Linux specific)
|
||||||
skip/macos # no iptables/netfilter (Linux specific)
|
skip/macos # no iptables/netfilter (Linux specific)
|
||||||
skip/aix # no iptables/netfilter (Linux specific)
|
skip/aix # no iptables/netfilter (Linux specific)
|
||||||
disabled # FIXME
|
|
||||||
|
|
Loading…
Reference in a new issue