Module: check_mk
Branch: master
Commit: c96978894727dfe9fb8c3167dec30f826fc81409
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c96978894727df…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Feb 24 15:41:12 2014 +0100
bugfix werk #0559: now able to process streams from uploaded files
---
web/htdocs/multitar.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/multitar.py b/web/htdocs/multitar.py
index a49b986..aafe2ef 100644
--- a/web/htdocs/multitar.py
+++ b/web/htdocs/multitar.py
@@ -87,7 +87,7 @@ def extract_from_file(filename, elements):
def list_tar_content(the_tarfile):
files = {}
try:
- if type(the_tarfile) == cStringIO.StringIO:
+ if type(the_tarfile) != str:
tar = tarfile.open("r", fileobj = the_tarfile)
else:
tar = tarfile.open(the_tarfile, "r")
@@ -97,7 +97,7 @@ def list_tar_content(the_tarfile):
return files
def get_file_content(the_tarfile, filename):
- if type(the_tarfile) == cStringIO.StringIO:
+ if type(the_tarfile) != str:
tar = tarfile.open("r", fileobj = the_tarfile)
else:
tar = tarfile.open(the_tarfile, "r")