Skip to content

Commit

Permalink
Don't create subdirs in tempdir if storage backend != fs
Browse files Browse the repository at this point in the history
  • Loading branch information
svniemeijer committed Jul 24, 2023
1 parent 7949455 commit 97b49d9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions muninn/storage/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ def __init__(self, tempdir=None):

def get_tmp_root(self, product):
if self._tmp_root is not None:
tmp_root = os.path.join(self._tmp_root, product.core.archive_path)
util.make_path(tmp_root)
return tmp_root
util.make_path(self._tmp_root)
return self._tmp_root

def run_for_product(self, product, fn, use_enclosing_directory):
tmp_root = self.get_tmp_root(product)
Expand Down

0 comments on commit 97b49d9

Please sign in to comment.