From 8d09b74908d0fbf022dd3559f736c9562bf023aa Mon Sep 17 00:00:00 2001 From: Jiri Tyr Date: Fri, 3 Jun 2016 20:59:28 +0100 Subject: [PATCH] Fixing wrong type of params option in yum_repository module (#2371) This commit fixes incorrect type of the "params" option of the "yum_repository" module. Without this fix the value of the "params" option is read as a string instead of as a dictionary which makes it impossible to define any additional YUM repository parameters. --- lib/ansible/modules/extras/packaging/os/yum_repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/packaging/os/yum_repository.py b/lib/ansible/modules/extras/packaging/os/yum_repository.py index b469ebf1259..89de7eb3814 100644 --- a/lib/ansible/modules/extras/packaging/os/yum_repository.py +++ b/lib/ansible/modules/extras/packaging/os/yum_repository.py @@ -655,7 +655,7 @@ def main(): mirrorlist=dict(), mirrorlist_expire=dict(), name=dict(required=True), - params=dict(), + params=dict(type='dict'), password=dict(no_log=True), priority=dict(), protect=dict(type='bool'),