Make the pkg/name param into a list so that changes to make changes to _squash_items easier

This commit is contained in:
Toshio Kuratomi 2015-11-01 12:13:32 -08:00 committed by Matt Clay
parent 682b7ce3bd
commit 9c75b5eac3

View file

@ -269,7 +269,7 @@ def main():
module = AnsibleModule( module = AnsibleModule(
argument_spec = dict( argument_spec = dict(
state = dict(default="present", choices=["present","absent"], required=False), 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'), cached = dict(default=False, type='bool'),
annotation = dict(default="", required=False), annotation = dict(default="", required=False),
pkgsite = dict(default="", required=False), pkgsite = dict(default="", required=False),
@ -280,7 +280,7 @@ def main():
p = module.params p = module.params
pkgs = p["name"].split(",") pkgs = p["name"]
changed = False changed = False
msgs = [] msgs = []