Fix bugs found by @kustodian
This commit is contained in:
parent
08c17814fb
commit
7c6c518003
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue