Skip to content

Commit

Permalink
Merge pull request #872 from lsst/tickets/DM-40257
Browse files Browse the repository at this point in the history
DM-40257: Enable skip_datastore for remove collections command
  • Loading branch information
timj committed Aug 2, 2023
2 parents 490508e + 8fffe94 commit 348c15d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/daf/butler/script/removeCollections.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def _getCollectionInfo(
collectionInfo : `CollectionInfo`
Contains tables with run and non-run collection info.
"""
butler = Butler(repo)
butler = Butler(repo, without_datastore=True)
try:
names = sorted(
butler.registry.queryCollections(
Expand Down Expand Up @@ -129,7 +129,7 @@ def removeCollections(

def doRemove(collections: Table) -> None:
"""Perform the prune collection step."""
butler = Butler(repo, writeable=True)
butler = Butler(repo, writeable=True, without_datastore=True)
for name in collections["Collection"]:
butler.registry.removeCollection(name)

Expand Down

0 comments on commit 348c15d

Please sign in to comment.