mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
mso_contract_filter: Improve logic (#51315)
This PR improves the jsonpatch logic.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user