Skip to content

Commit

Permalink
Merge branch 'tickets/DM-42038'
Browse files Browse the repository at this point in the history
  • Loading branch information
kfindeisen committed Dec 6, 2023
2 parents c2d51f9 + 5cfd8c9 commit 01711f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/activator/middleware_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,11 @@ def make_local_repo(local_storage: str, central_butler: Butler, instrument: str)
An object of the same type as returned by `tempfile.TemporaryDirectory`,
pointing to the local repo location.
"""
dimension_config = central_butler.dimensions.dimensionConfig
repo_dir = tempfile.TemporaryDirectory(dir=local_storage, prefix="butler-")
butler = Butler(Butler.makeRepo(repo_dir.name), writeable=True)
_log.info("Created local Butler repo at %s.", repo_dir.name)
butler = Butler(Butler.makeRepo(repo_dir.name, dimensionConfig=dimension_config), writeable=True)
_log.info("Created local Butler repo at %s with dimensions-config %s %d.",
repo_dir.name, dimension_config["namespace"], dimension_config["version"])

# Run-once repository initialization

Expand Down

0 comments on commit 01711f3

Please sign in to comment.