From de4b8dc53ab78c909f34fdf2db7319bf36f44b22 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Tue, 14 Aug 2012 19:29:09 -0400 Subject: [PATCH] Can use fail JSON here, remove debug statement --- library/yum | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/library/yum b/library/yum index 144c64a63a5..89f107e33c1 100755 --- a/library/yum +++ b/library/yum @@ -281,8 +281,7 @@ def install(module, items, repoq, yum_basecmd, conf_file): pkglist = what_provides(module, repoq, spec, conf_file) if not pkglist: res['msg'] += "No Package matching '%s' found available, installed or updated" % spec - res['failed'] = True - module.exit_json(**res) + module.fail_json(**res) # if any of them are installed # then nothing to do @@ -321,8 +320,6 @@ def install(module, items, repoq, yum_basecmd, conf_file): def remove(module, items, repoq, yum_basecmd, conf_file): - print "DEBUG: %s/%s/%s/%s/%s" % (module,items,repoq,yum_basecmd,conf_file) - res = {} res['results'] = [] res['msg'] = ''