From 15a04a3da7b268e35e1d2688f86d084047e746f1 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 9 Jan 2018 14:53:52 -0800 Subject: [PATCH] Fix Python 3.7 syntax error. --- lib/ansible/cli/adhoc.py | 5 +++-- test/compile/python3.7-skip.txt | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/cli/adhoc.py b/lib/ansible/cli/adhoc.py index 2192ae98d0..2e8a7267e6 100644 --- a/lib/ansible/cli/adhoc.py +++ b/lib/ansible/cli/adhoc.py @@ -83,13 +83,14 @@ class AdHocCLI(CLI): display.verbosity = self.options.verbosity self.validate_conflicts(runas_opts=True, vault_opts=True, fork_opts=True) - def _play_ds(self, pattern, async, poll): + def _play_ds(self, pattern, async_val, poll): check_raw = self.options.module_name in ('command', 'win_command', 'shell', 'win_shell', 'script', 'raw') return dict( name="Ansible Ad-Hoc", hosts=pattern, gather_facts='no', - tasks=[dict(action=dict(module=self.options.module_name, args=parse_kv(self.options.module_args, check_raw=check_raw)), async=async, poll=poll)] + tasks=[dict(action=dict(module=self.options.module_name, args=parse_kv(self.options.module_args, check_raw=check_raw)), async_val=async_val, + poll=poll)] ) def run(self): diff --git a/test/compile/python3.7-skip.txt b/test/compile/python3.7-skip.txt index 3184613d4a..398feb1a79 100644 --- a/test/compile/python3.7-skip.txt +++ b/test/compile/python3.7-skip.txt @@ -1,2 +1 @@ -lib/ansible/cli/adhoc.py lib/ansible/modules/packaging/os/yum_repository.py