-
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
initial xml module/state #49822
initial xml module/state #49822
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.
I like this! I do think that we should add information about this to the release notes prior to merging it, however.
Additionally, there are two lint errors that need to be fixed before we can merge this: https://jenkinsci.saltstack.com/job/pr-lint/job/PR-49822/3/warnings52Result/new/ |
Short blurb added to the release notes. However, if it's release note worthy, then this should really have an accompanying state to perform file.line or file.replace type functions. I'll take a stab at that when able. |
gracefully fail state if xpath doesn't exist
Great work here. Any chance we can get some test coverage for this? |
@dwoz there are tests on the module. Do you mean the state as well? As it just calls the module, do you have a suggestion? |
@mchugh19 Yes, state tests would be very welcome. :) Looks like there is also a merge conflict here with the release notes. Can you rebase this when you're ready with some more tests? |
I think this is all set. Test and docs should be complete |
@dwoz Can you come by and review this, please? Thanks. |
@dwoz bump :) |
initial xml module/state
What does this PR do?
Adds new xml module to query/modify basic xml elements from an XPath query
New Behavior
Given the file:
The following functionality is implemented:
get/set attributes
get/set values
It's pretty simplistic, but if this seems to be a good direction to go, it can form the foundation for a matching xml state to search/replace values.
Tests written?
Yes
Commits signed with GPG?
No