From 3776348acb3967d878b3aa40ee8d8e472df10c97 Mon Sep 17 00:00:00 2001 From: Sam Hanes Date: Fri, 14 Mar 2014 00:22:32 -0700 Subject: [PATCH] Add support for YAML lists to apt module. --- packaging/apt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/apt b/packaging/apt index 311bfa1199b..58625304461 100644 --- a/packaging/apt +++ b/packaging/apt @@ -363,7 +363,7 @@ def main(): update_cache = dict(default=False, aliases=['update-cache'], type='bool'), cache_valid_time = dict(type='int'), purge = dict(default=False, type='bool'), - package = dict(default=None, aliases=['pkg', 'name']), + package = dict(default=None, aliases=['pkg', 'name'], type='list'), default_release = dict(default=None, aliases=['default-release']), install_recommends = dict(default='yes', aliases=['install-recommends'], type='bool'), force = dict(default='no', type='bool'), @@ -444,7 +444,7 @@ def main(): if p['upgrade']: upgrade(module, p['upgrade'], force_yes, dpkg_options) - packages = p['package'].split(',') + packages = p['package'] latest = p['state'] == 'latest' for package in packages: if package.count('=') > 1: