Accept nested namespaces in spacewalk.api#57491
Conversation
5b6a4e8 to
f15a531
Compare
|
An odd failure on centos happening here - I've asked the team if they've seen anything. I guess I can kick these off again and see if it was just an infrastructure thing |
|
I'll push the tests on Tuesday (Monday is a public holiday where I live), I have something that works but I want to clean it up a little. |
f15a531 to
92f524d
Compare
|
Tests are there now, I got a pylint warning for the test:
With Python3 this can be left out in my opinion (with UTF-8 being the default), but I am not sure if this is an oversight w.r.t. the pylintrc or you want to keep it even for a Python3-only codebase. Let me know if I should add it. |
waynew
left a comment
There was a problem hiding this comment.
It's probably easiest for now to just go ahead and add the encoding line.
If we change it, it'll just be one more file for sed or awk to change. And that's the only thing that looks to need any changes here 👍
8b5d984 to
fffa771
Compare
|
I've added the line, thanks for your review @waynew |
salt-run $server spacewalk.api allows users to run arbitrary Spacewalk API functions through Salt. These are passed in a namespace.method notation and may use nested namespaces. Previously only methods in a top-level namespace were supported. Fixes saltstack#57442 Co-authored-by: Wayne Werner <wwerner@saltstack.com>
9fcb54c to
8d4ca7a
Compare
What does this PR do?
salt-run $server spacewalk.apiallows users to run arbitrary Spacewalk API functions through Salt. These are passed in a namespace.method notation and may use nested namespaces. Previously only methods in a top-level namespace were supported.What issues does this PR fix or reference?
Fixes: #57442
Previous Behavior
New Behavior
API gets called as expected, e.g.
Merge requirements satisfied?
Does this need to be documented in addition to the changelog? As there are no spacewalk runner tests yet I will need some time writing them, I opened the PR already to get feedback on the fix.
Commits signed with GPG?
Yes