summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Scherer <misc@zarb.org>2013-11-22 16:06:41 +0100
committerMichael Scherer <misc@zarb.org>2013-11-22 16:06:41 +0100
commit9731f388c16a619763c86e39d9a85e206d27fad0 (patch)
tree7b633ca62a9589dfee462b59b9344ed04c9ee1ac
parent5c84d7e445cdad6a2331ffac591819689edff45a (diff)
downloadansible-9731f388c16a619763c86e39d9a85e206d27fad0.tar.gz
Do not use construct not compatible with python 2.4, fix #5006
-rw-r--r--library/files/unarchive2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/files/unarchive b/library/files/unarchive
index cd604c6867..86bb4d7376 100644
--- a/library/files/unarchive
+++ b/library/files/unarchive
@@ -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):