]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Fix unbound error in cfn_helper.
authorAngus Salkeld <asalkeld@redhat.com>
Thu, 3 May 2012 12:33:23 +0000 (22:33 +1000)
committerAngus Salkeld <asalkeld@redhat.com>
Thu, 3 May 2012 12:34:13 +0000 (22:34 +1000)
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
heat/cfntools/cfn_helper.py

index e56ed49ed91eb0421bd8a46500c94bd755295b9a..fa0812ea1554722328c1120a4bbdaf646df4b94d 100644 (file)
@@ -573,6 +573,7 @@ class SourcesHandler(object):
         return '/tmp/%s' % (sp[-1])
 
     def _decompress(self, archive, dest_dir):
+        cmd_str = ''
         (r, ext) = os.path.splitext(archive)
         if ext is 'tar.gz' or ext is 'tgz':
             cmd_str = 'tar -C %s -xzf %s' % (dest_dir, archive)