Skip to content

Feature Request: diff of the objects #143

@vooon

Description

@vooon

It would be very handy to have support for --diff option.

Implementation is quite simple (pseudocode):

import json

def pretty_print_object(obj):
    return json.dumps(obj, indent=2)

diff = dict(before='', before_header='', after='', after_header='')

diff['before'] = pretty_print_object(old_state)
diff['after'] = pretty_print_object(new_state)

module.exit_json(changed=changed, diff=diff, ...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureProposed new functioanlity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions