aboutsummaryrefslogtreecommitdiff
path: root/kolla/image
diff options
context:
space:
mode:
Diffstat (limited to 'kolla/image')
-rw-r--r--kolla/image/tasks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kolla/image/tasks.py b/kolla/image/tasks.py
index 091f41f65..1ee3b828d 100644
--- a/kolla/image/tasks.py
+++ b/kolla/image/tasks.py
@@ -265,7 +265,7 @@ class BuildTask(EngineTask):
def builder(self, image):
def _test_malicious_tarball(archive, path):
- tar_file = tarfile.open(archive, 'r|gz')
+ tar_file = tarfile.open(archive, 'r|*')
for n in tar_file.getnames():
if not os.path.abspath(os.path.join(path, n)).startswith(path):
tar_file.close()