diff options
author | Adrian Likins <alikins@redhat.com> | 2016-05-24 11:55:14 -0400 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2016-05-24 11:56:01 -0400 |
commit | 81fd2a242b3570edfed6256b072bc8a207a625cc (patch) | |
tree | a6b9d525dbb32552a017d92d2ed44c2bcfebc764 | |
parent | 646880bf7adbe3d23835e5ba1bf677a642699df7 (diff) | |
download | ansible-modules-extras-stable-2.1.1.tar.gz |
Fix pkgutil "upgrade_catalog must be one of" err (#2149)stable-2.1.1
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
-rw-r--r-- | packaging/os/pkgutil.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packaging/os/pkgutil.py b/packaging/os/pkgutil.py index 0cdc3dee..35ccb4e1 100644 --- a/packaging/os/pkgutil.py +++ b/packaging/os/pkgutil.py @@ -54,8 +54,7 @@ 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" ''' @@ -130,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 ) |