aboutsummaryrefslogtreecommitdiff
path: root/rumba/executors/docker.py
diff options
context:
space:
mode:
Diffstat (limited to 'rumba/executors/docker.py')
-rw-r--r--rumba/executors/docker.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rumba/executors/docker.py b/rumba/executors/docker.py
index e3d40dc..8587878 100644
--- a/rumba/executors/docker.py
+++ b/rumba/executors/docker.py
@@ -28,6 +28,7 @@ from rumba import model as mod
import tempfile
import tarfile
+import os
from rumba import log
@@ -67,11 +68,10 @@ class DockerExecutor(mod.Executor):
for c in archive:
tmp.write(c)
-
tmp.seek(0)
- tarfile.TarFile(fileobj=tmp, mode='r').extract(
- path.basename(path), destination)
+ tarball = tarfile.TarFile(fileobj=tmp, mode='r')
+ tarball.extract(os.path.basename(path), destination)
except:
logger.error("Error when extracting %s" % path)