mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
restconf_config module (#51971)
* Add restconf_config module * Try to do the right thing when given partial paths * Add PATCH * Delete should not require content * Non-JSON exceptions need raising, too * Let ConnectionError objects pass through exec_jsonrpc
This commit is contained in:
parent
5cc6a70398
commit
d5aabd02ba
5 changed files with 196 additions and 12 deletions
|
@ -264,7 +264,9 @@ def dict_diff(base, comparable):
|
|||
if isinstance(value, dict):
|
||||
item = comparable.get(key)
|
||||
if item is not None:
|
||||
updates[key] = dict_diff(value, comparable[key])
|
||||
sub_diff = dict_diff(value, comparable[key])
|
||||
if sub_diff:
|
||||
updates[key] = sub_diff
|
||||
else:
|
||||
comparable_value = comparable.get(key)
|
||||
if comparable_value is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue