add failsafe comment for install_repoquery
This commit is contained in:
parent
122a7021bc
commit
aeccbeeed2
1 changed files with 3 additions and 2 deletions
|
@ -801,6 +801,7 @@ def main():
|
||||||
list=dict(),
|
list=dict(),
|
||||||
conf_file=dict(default=None),
|
conf_file=dict(default=None),
|
||||||
disable_gpg_check=dict(required=False, default="no", type='bool'),
|
disable_gpg_check=dict(required=False, default="no", type='bool'),
|
||||||
|
# this should not be needed, but exists as a failsafe
|
||||||
install_repoquery=dict(required=False, default="yes", type='bool'),
|
install_repoquery=dict(required=False, default="yes", type='bool'),
|
||||||
),
|
),
|
||||||
required_one_of = [['name','list']],
|
required_one_of = [['name','list']],
|
||||||
|
@ -808,9 +809,9 @@ def main():
|
||||||
supports_check_mode = True
|
supports_check_mode = True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# this should not be needed, but exists as a failsafe
|
||||||
params = module.params
|
params = module.params
|
||||||
|
if params['install_repoquery'] and not repoquery and not module.check_mode:
|
||||||
if params.install_repoquery and not repoquery and not module.check_mode:
|
|
||||||
install_yum_utils(module)
|
install_yum_utils(module)
|
||||||
|
|
||||||
if params['list']:
|
if params['list']:
|
||||||
|
|
Loading…
Reference in a new issue