mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
mso_contract_filter: Improve logic (#51315)
This PR improves the jsonpatch logic.
This commit is contained in:
parent
0acc4dafdd
commit
92b475f721
2 changed files with 67 additions and 59 deletions
|
@ -180,6 +180,10 @@ class MSOModule(object):
|
|||
if method is not None:
|
||||
self.method = method
|
||||
|
||||
# If we PATCH with empty operations, return
|
||||
if method == 'PATCH' and not data:
|
||||
return {}
|
||||
|
||||
self.url = urljoin(self.baseuri, path)
|
||||
|
||||
if qs is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue