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

Fix: Submit XML method update #86

Merged
merged 2 commits into from
Nov 13, 2024
Merged

Fix: Submit XML method update #86

merged 2 commits into from
Nov 13, 2024

Conversation

mamullen13316
Copy link
Collaborator

  • minor fix to allow exclusion of the set operation in the XML payload of the submit_xml method. This is to solve a specific problem where the remove method doesn't work because the content to be removed is nested deeper than the first level. With this fix, the set_operation argument can be set to None so that the set operation is excluded from the XML payload. Then the payload of the object to be removed can be included, for example
payload = '''
<Remove>
       <AuthenticationServers>
           <RADIUSServer>
               <ServerName>{{ name }}</ServerName>
           </RADIUSServer>
       </AuthenticationServers>
   </Remove
'''

fw.submit_xml(template_data=payload, template_vars=template_vars, set_operation=None)

@mamullen13316 mamullen13316 merged commit 5680d1f into main Nov 13, 2024
6 checks passed
@mamullen13316 mamullen13316 deleted the submit_xml_fix branch November 13, 2024 14:21
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.

1 participant