1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

pkgng: fix syntax for Python 2

Seems *args, **kwargs have to be the last
two arguments in Python 2 syntax. CI sanity
tests were failing.
This commit is contained in:
Ross Williams 2021-10-13 00:13:40 +00:00
parent 4b10f5e1fb
commit c34df85eac

View file

@ -468,7 +468,7 @@ def main():
# in /usr/local/etc/pkg/repos
repo_flag_not_supported = pkgng_older_than(module, pkgng_path, [1, 1, 4])
def run_pkgng(action, *args, pkgsite=None, **kwargs):
def run_pkgng(action, pkgsite=None, *args, **kwargs):
cmd = [pkgng_path, dir_arg, action]
pkgng_env = {'BATCH': 'yes'}