Skip to content

Commit

Permalink
Fix code to remove obscore manager in makeRepo
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Feb 7, 2023
1 parent f17100b commit a533ab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/daf/butler/_butler.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,9 +487,9 @@ def makeRepo(
# Strip obscore configuration, if it is present, before writing config
# to a file, obscore config will be stored in registry.
config_to_write = config
if ("registry", "managers", "obscore") in config:
if (obscore_config_key := ("registry", "managers", "obscore", "config")) in config:
config_to_write = config.copy()
del config_to_write["registry", "managers", "obscore", "config"]
del config_to_write[obscore_config_key]
config_to_write.dumpToUri(configURI, overwrite=overwrite)

# Create Registry and populate tables
Expand Down

0 comments on commit a533ab8

Please sign in to comment.