From c34df85eacb0b5a2492452cb1a2ffd7a625b21ff Mon Sep 17 00:00:00 2001 From: Ross Williams Date: Wed, 13 Oct 2021 00:13:40 +0000 Subject: [PATCH] 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. --- plugins/modules/packaging/os/pkgng.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/packaging/os/pkgng.py b/plugins/modules/packaging/os/pkgng.py index 5636353584..1a591da5fd 100644 --- a/plugins/modules/packaging/os/pkgng.py +++ b/plugins/modules/packaging/os/pkgng.py @@ -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'}