ifxed error message as code remove the repo r var

reviewable/pr18780/r1
Brian Coca 10 years ago
parent f7062fc6d2
commit 788230c43e

@ -768,7 +768,7 @@ def ensure(module, state, pkgspec, conf_file, enablerepo, disablerepo,
a = rid.repoXML.repoid a = rid.repoXML.repoid
current_repos = new_repos current_repos = new_repos
except yum.Errors.YumBaseError, e: except yum.Errors.YumBaseError, e:
module.fail_json(msg="Error setting/accessing repo %s: %s" % (r, e)) module.fail_json(msg="Error setting/accessing repos: %s" % (e))
except yum.Errors.YumBaseError, e: except yum.Errors.YumBaseError, e:
module.fail_json(msg="Error accessing repos: %s" % e) module.fail_json(msg="Error accessing repos: %s" % e)
if state in ['installed', 'present']: if state in ['installed', 'present']:

Loading…
Cancel
Save