mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 04:11:25 -07:00
Fix Python 3.7 syntax error.
This commit is contained in:
parent
fbce62795d
commit
15a04a3da7
2 changed files with 3 additions and 3 deletions
|
@ -83,13 +83,14 @@ class AdHocCLI(CLI):
|
||||||
display.verbosity = self.options.verbosity
|
display.verbosity = self.options.verbosity
|
||||||
self.validate_conflicts(runas_opts=True, vault_opts=True, fork_opts=True)
|
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')
|
check_raw = self.options.module_name in ('command', 'win_command', 'shell', 'win_shell', 'script', 'raw')
|
||||||
return dict(
|
return dict(
|
||||||
name="Ansible Ad-Hoc",
|
name="Ansible Ad-Hoc",
|
||||||
hosts=pattern,
|
hosts=pattern,
|
||||||
gather_facts='no',
|
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):
|
def run(self):
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
lib/ansible/cli/adhoc.py
|
|
||||||
lib/ansible/modules/packaging/os/yum_repository.py
|
lib/ansible/modules/packaging/os/yum_repository.py
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue