From b6e3ddba9af67b6b3d8b2c32eeadb4895f8813d0 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Fri, 10 Apr 2015 14:59:33 -0400 Subject: [PATCH] ifxed error message as code remove the repo r var --- lib/ansible/modules/packaging/os/yum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/packaging/os/yum.py b/lib/ansible/modules/packaging/os/yum.py index e21034d59ba..ae11ffb4839 100644 --- a/lib/ansible/modules/packaging/os/yum.py +++ b/lib/ansible/modules/packaging/os/yum.py @@ -768,7 +768,7 @@ def ensure(module, state, pkgspec, conf_file, enablerepo, disablerepo, a = rid.repoXML.repoid current_repos = new_repos 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: module.fail_json(msg="Error accessing repos: %s" % e) if state in ['installed', 'present']: