From f096cd6322d67d38b934384867c281eda04bf914 Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Tue, 24 May 2016 11:55:14 -0400 Subject: [PATCH] Fix pkgutil "upgrade_catalog must be one of" err (#2149) The arg spec for update_catalog include 'type=bool' and 'choices=["yes", "no"] which can never both be true. Remove the 'choices' directive, and update doc string. Fixes #2144 --- lib/ansible/modules/extras/packaging/os/pkgutil.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/extras/packaging/os/pkgutil.py b/lib/ansible/modules/extras/packaging/os/pkgutil.py index 72d2bf64288..35ccb4e1906 100644 --- a/lib/ansible/modules/extras/packaging/os/pkgutil.py +++ b/lib/ansible/modules/extras/packaging/os/pkgutil.py @@ -54,8 +54,8 @@ options: description: - If you want to refresh your catalog from the mirror, set this to (C(yes)). required: false - choices: ["yes", "no"] - default: no + default: False + version_added: "2.1" ''' EXAMPLES = ''' @@ -129,7 +129,7 @@ def main(): name = dict(required = True), state = dict(required = True, choices=['present', 'absent','latest']), site = dict(default = None), - update_catalog = dict(required = False, default = "no", type='bool', choices=["yes","no"]), + update_catalog = dict(required = False, default = False, type='bool'), ), supports_check_mode=True )