diff --git a/system/debconf.py b/system/debconf.py index 74818e908f4..4aa512b4a83 100644 --- a/system/debconf.py +++ b/system/debconf.py @@ -161,8 +161,14 @@ def main(): prev = {question: prev[question]} else: prev[question] = '' + if module._diff: + after = prev.copy() + after.update(curr) + diffdict = {'before': prev, 'after': after} + else: + diff_dict = {} - module.exit_json(changed=changed, msg=msg, current=curr, previous=prev) + module.exit_json(changed=changed, msg=msg, current=curr, previous=prev, diff=diff_dict) module.exit_json(changed=changed, msg=msg, current=prev)