Skip to content

Added strict argument to sdb.get - #57630

Merged
dwoz merged 3 commits into
saltstack:masterfrom
Oloremo:sdb-get-fix
Sep 30, 2020
Merged

Added strict argument to sdb.get#57630
dwoz merged 3 commits into
saltstack:masterfrom
Oloremo:sdb-get-fix

Conversation

@Oloremo

@Oloremo Oloremo commented Jun 10, 2020

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds a bool strict argument to sdb.get module. If set tot True sdb.get will raise an exception if sdb uri is not correct. By default, it's False to preserve old, weird behavior.

What issues does this PR fix or reference?

Fixes: #39163

Merge requirements satisfied?

Commits signed with GPG?

Yes

@Oloremo
Oloremo requested a review from a team as a code owner June 10, 2020 22:25
@ghost
ghost requested review from waynew and removed request for a team June 10, 2020 22:25
waynew
waynew previously approved these changes Jun 15, 2020
@Oloremo

Oloremo commented Aug 20, 2020

Copy link
Copy Markdown
Contributor Author

@waynew @dwoz Tests are green now.

@waynew waynew left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this looks good. Though, looking at this, urllib.parse.urlparse would probably do a lot better here at simplifying/making explicit this code 😝

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Magnesium Mg release after Na prior to Al

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vault SDB always returns the query URL for salt and salt-call. Salt-run executes properly.

4 participants