Skip to content

Commit

Permalink
ingest.py: Pass dryrun argument to register.openRegistry
Browse files Browse the repository at this point in the history
Otherwise dry-run would not work. DM-3668.
  • Loading branch information
Hsin-Fang Chiang committed Sep 30, 2015
1 parent d0bf637 commit 74f9fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/obs/decam/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self, *args, **kwargs):
def run(self, args):
"""Ingest all specified files and add them to the registry"""
if args.filetype == "instcal":
with self.register.openRegistry(args.butler, create=args.create) if not args.dryrun else None as registry:
with self.register.openRegistry(args.butler, create=args.create, dryrun=args.dryrun) as registry:
for infile in args.files:
fileInfo, hduInfoList = self.parse.getInfo(infile, args.filetype)
if len(hduInfoList) > 0:
Expand Down

0 comments on commit 74f9fb6

Please sign in to comment.