From 75d181427c2622118345ca53982ffd9190e3d3d6 Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Thu, 14 Mar 2013 10:36:05 +1300 Subject: [PATCH] Fix typos in unexecuted code paths Change-Id: I28f1d4d29ef5a15682df909c5be7886a7ee5c4a6 Fixes: bug #1154808 --- heat_cfntools/cfntools/cfn_helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/heat_cfntools/cfntools/cfn_helper.py b/heat_cfntools/cfntools/cfn_helper.py index fc15077..15c7abd 100644 --- a/heat_cfntools/cfntools/cfn_helper.py +++ b/heat_cfntools/cfntools/cfn_helper.py @@ -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.