Fix typos in unexecuted code paths

Change-Id: I28f1d4d29ef5a15682df909c5be7886a7ee5c4a6
Fixes: bug #1154808
This commit is contained in:
Steve Baker 2013-03-14 10:36:05 +13:00
parent a5a9379dbf
commit 75d181427c

View File

@ -355,7 +355,7 @@ class RpmHelper(object):
cmd = "yum -y downgrade "
cmd += " ".join(packages)
LOG.info("Downgrading packages: %s" % cmd)
command = Command(cmd).run()
command = CommandRunner(cmd).run()
if command.status:
LOG.warn("Failed to downgrade packages: %s" % cmd)
@ -457,7 +457,7 @@ class PackagesHandler(object):
if downgrades:
RpmHelper.downgrade(downgrades)
def _handle_rpm_packages(sef, packages):
def _handle_rpm_packages(self, packages):
"""
Handle installation, upgrade, or downgrade of a set of
packages via rpm.