Merge pull request #5015 from mscherer/fix_5006

Do not use construct not compatible with python 2.4, fix #5006
This commit is contained in:
Michael DeHaan 2013-11-22 07:35:53 -08:00
commit 1aa1e53d12

View file

@ -98,7 +98,7 @@ class _tgzfile(object):
destbase = os.path.basename(self.dest)
cmd = 'tar -v -C "%s" --diff -%sf "%s"' % (self.dest, self.zipflag,self.src)
rc, out, err = self.module.run_command(cmd)
bool = True if rc == 0 else False
bool = (rc == 0)
return dict( bool = bool, rc = rc , out = out, err = err, cmd = cmd)
def unarchive(self):