From 8e0a2ed729901f0bd7b950883d805861883e2fbb Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Sun, 1 Nov 2015 12:13:32 -0800 Subject: [PATCH] Make the pkg/name param into a list so that changes to make changes to _squash_items easier --- packaging/os/pkgng.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/os/pkgng.py b/packaging/os/pkgng.py index fe0f2687b31..0eafcb6d00b 100644 --- a/packaging/os/pkgng.py +++ b/packaging/os/pkgng.py @@ -268,7 +268,7 @@ def main(): module = AnsibleModule( argument_spec = dict( state = dict(default="present", choices=["present","absent"], required=False), - name = dict(aliases=["pkg"], required=True), + name = dict(aliases=["pkg"], required=True, type='list'), cached = dict(default=False, type='bool'), annotation = dict(default="", required=False), pkgsite = dict(default="", required=False), @@ -279,7 +279,7 @@ def main(): p = module.params - pkgs = p["name"].split(",") + pkgs = p["name"] changed = False msgs = []