mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-02 14:29:10 -07:00
Fix Python 3.7 syntax error in yum_repository.
This commit is contained in:
parent
15a04a3da7
commit
232dc7110c
2 changed files with 59 additions and 57 deletions
|
@ -615,9 +615,7 @@ class YumRepo(object):
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
# Module settings
|
# Module settings
|
||||||
module = AnsibleModule(
|
argument_spec = dict(
|
||||||
argument_spec=dict(
|
|
||||||
async=dict(type='bool'),
|
|
||||||
bandwidth=dict(),
|
bandwidth=dict(),
|
||||||
baseurl=dict(type='list'),
|
baseurl=dict(type='list'),
|
||||||
cost=dict(),
|
cost=dict(),
|
||||||
|
@ -671,7 +669,12 @@ def main():
|
||||||
timeout=dict(),
|
timeout=dict(),
|
||||||
ui_repoid_vars=dict(),
|
ui_repoid_vars=dict(),
|
||||||
username=dict(),
|
username=dict(),
|
||||||
),
|
)
|
||||||
|
|
||||||
|
argument_spec['async'] = dict(type='bool')
|
||||||
|
|
||||||
|
module = AnsibleModule(
|
||||||
|
argument_spec=argument_spec,
|
||||||
add_file_common_args=True,
|
add_file_common_args=True,
|
||||||
supports_check_mode=True,
|
supports_check_mode=True,
|
||||||
)
|
)
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
lib/ansible/modules/packaging/os/yum_repository.py
|
|
Loading…
Add table
Add a link
Reference in a new issue