From f36e85efbba404a705b0cba419f66139f096d549 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Tue, 23 Apr 2013 09:38:32 -0400 Subject: [PATCH] Fixup apt module refactoring from previous patch. --- library/apt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/apt b/library/apt index ac4fcf316b..01cab4bff3 100644 --- a/library/apt +++ b/library/apt @@ -154,7 +154,7 @@ def install(m, pkgspec, cache, upgrade=False, default_release=None, install_reco else: force_yes = '' - cmd = "%s --option Dpkg::Options::=--force-confold -q -y %s install %s" % (APT_GET, force_yes, packages) + cmd = "%s --option Dpkg::Options::=--force-confold -q -y %s install %s" % (APT_GET_CMD, force_yes, packages) if default_release: cmd += " -t '%s'" % (default_release,) if not install_recommends: @@ -185,7 +185,7 @@ def remove(m, pkgspec, cache, purge=False): purge = '' if purge: purge = '--purge' - cmd = "%s -q -y %s remove %s" % (APT_GET, purge,packages) + cmd = "%s -q -y %s remove %s" % (APT_GET_CMD, purge,packages) if m.check_mode: m.exit_json(changed=True) @@ -234,7 +234,7 @@ def main(): default_release = dict(default=None, aliases=['default-release']), install_recommends = dict(default='yes', aliases=['install-recommends'], type='bool'), force = dict(default='no', type='bool'), - upgrade = dict(default='yes', choices=['yes', 'safe', 'full', 'dist']) + upgrade = dict(choices=['yes', 'safe', 'full', 'dist']) ), mutually_exclusive = [['package', 'upgrade']], required_one_of = [['package', 'upgrade', 'update_cache']],