-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Allow /
in pillar includes
#52008
Allow /
in pillar includes
#52008
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@waynew does this have a test that verifies the behavior?
@dwoz not yet - I wanted to make sure that this behavior makes sense before I went and wrote the test for it. i.e. should all of these be the same as
If the answer is yes, I'll get that test knocked out... otherwise... should I just make it so
|
@waynew also capturing it here, needs to support leading dot as in :
|
cb5dd42
to
a7931ca
Compare
@dmurphy18 So... I have some mixed feelings about my current PR. On the one hand, yes, it does work for allowing The part I'm questioning is that technically this introduces a new feature, i.e. relative pillar includes. Before, a leading Should I break this up into multiple PRs, one restoring the behavior, and one with the improvement? |
@waynew I would be in favor of splitting, an issue per fix is my motto. |
3f63f00
to
f76085e
Compare
This was raising an ignored exception because _closing was set later in __init__. Not sure if it must be the last line in __init__.
f76085e
to
ee3115f
Compare
What does this PR do?
Re-allows / in pillar includes
What issues does this PR fix or reference?
#51832
Previous Behavior
Using
fnmatch
stopped us from allowing/
in our pillar includes.New Behavior
re-allow
/
Tests written?
No(t yet)
Commits signed with GPG?
Yes
This works but I'm not certain if this works too broadly. For instance, if you wrote:
It would look for
foo.bar.bang.thing
. Is that reasonable, or should I throw in a check to make sure that there is no.
in thesub_sls
before I do the replacement?