summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2015-06-16 06:28:46 -0700
committerToshio Kuratomi <toshio@fedoraproject.org>2015-06-16 06:28:46 -0700
commit7c6c5180037c15d23cf838decc708b55c5d7ddfa (patch)
tree3bf8f7953933a967b24b1051a2ce557dbbf163a7
parent08c17814fb48be494e09909fd866d6bec3d61ff8 (diff)
downloadansible-modules-core-use-yum-api.tar.gz
Fix bugs found by @kustodianuse-yum-api
-rw-r--r--packaging/os/yum.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/packaging/os/yum.py b/packaging/os/yum.py
index 6e2b61a1..624ae298 100644
--- a/packaging/os/yum.py
+++ b/packaging/os/yum.py
@@ -871,6 +871,8 @@ def main():
supports_check_mode = True
)
+ params = module.params
+
if params['list']:
repoquerybin = ensure_yum_utils(module)
if not repoquerybin:
@@ -882,7 +884,7 @@ def main():
# the system then users will see an error message using the yum API.
# Use repoquery in those cases.
- my = yum_base(conf_file)
+ my = yum_base(params['conf_file'])
# A sideeffect of accessing conf is that the configuration is
# loaded and plugins are discovered
my.conf