From 471824b451581ccc22f511fd482cc38b0372b17f Mon Sep 17 00:00:00 2001
From: Edward Torbett <edward@torbett.co.uk>
Date: Thu, 11 Jun 2015 15:13:28 +0100
Subject: [PATCH] Comments by @abadger

---
 packaging/os/yum.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/packaging/os/yum.py b/packaging/os/yum.py
index e81f16bb2c1..858ed3af9a4 100644
--- a/packaging/os/yum.py
+++ b/packaging/os/yum.py
@@ -600,6 +600,8 @@ def install(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos):
                 module.fail_json(msg="Failure deleting temp directory %s, %s" % (tempdir, e))
             module.exit_json(changed=True)
 
+        changed = True
+
         rc, out, err = module.run_command(cmd)
 
         if (rc == 1):
@@ -627,7 +629,7 @@ def install(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos):
         # look for each pkg via obsoletes
 
         # Record change
-        res['changed'] = True
+        res['changed'] = changed
 
     # Remove rpms downloaded for EL5 via url
     try: