Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-22364: Allow makeRepo returned Config to be used to create Butler #208

Merged
merged 5 commits into from Nov 26, 2019

Conversation

timj
Copy link
Member

@timj timj commented Nov 25, 2019

No description provided.

Copy link
Member

@TallJimbo TallJimbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't say I fully understand what's going on inside Config here, except for the fact that it looks like copy construction was previously skipping a key attribute. I'm a little concerned that we apparently treat named config files differently from in-memory config objects (in that we remember their filenames and that's apparently important), and would appreciate an explanation of that, but certainly don't think it should get in the way of what's an obvious improvement.

# None or empty string indicate a problem
if not butlerRoot:
raise ValueError(f"Required to replace {BUTLER_ROOT_TAG} in '{configRoot}' "
"but a replacement has not been defined")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you think of any way a common high-level operation would get to this error? If so, we may want to beef up the error message with a guess about what might have gone wrong, but I'm guessing the other changes on this ticket mean it's hard to imagine how this might happen, and that's fine too.

@timj timj merged commit 5256e31 into master Nov 26, 2019
@timj timj deleted the tickets/DM-22364 branch November 26, 2019 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants