mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-06 00:14:02 -07:00
Remove xml return for junos declarative modules (#26400)
* Remove xml return * Add diff return * Related doc changes
This commit is contained in:
parent
c1ac55147f
commit
1a9b0ae731
13 changed files with 62 additions and 119 deletions
|
@ -118,6 +118,16 @@ EXAMPLES = """
|
|||
"""
|
||||
|
||||
RETURN = """
|
||||
diff:
|
||||
description: Configuration difference before and after applying change.
|
||||
returned: when configuration is changed.
|
||||
type: string
|
||||
sample: >
|
||||
[edit system login]
|
||||
+ user test-user {
|
||||
+ uid 2005;
|
||||
+ class read-only;
|
||||
+ }
|
||||
"""
|
||||
from functools import partial
|
||||
|
||||
|
@ -265,7 +275,7 @@ def main():
|
|||
if diff:
|
||||
result.update({
|
||||
'changed': True,
|
||||
'diff': {'prepared': diff}
|
||||
'diff': diff
|
||||
})
|
||||
|
||||
module.exit_json(**result)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue