mirror of https://github.com/ansible/ansible.git
allow before/after diff to be NoneType (#62582)
when creating or deleting an object (e.g. via an API), before/after can be `None` (or at least represented as such by the used library). to avoid modules havig to do diff={'before': before or '', 'after': after or ''} let's just convert `None` to an empty string that can be diffed properlypull/62799/head
parent
bb0fa0a622
commit
8d0c193b25
@ -0,0 +1,4 @@
|
||||
minor_changes:
|
||||
- callbacks - Allow modules to return `None` as before/after entries for diff.
|
||||
This should make it easier for modules to report the "not existing" state of
|
||||
the entity they touched.
|
Loading…
Reference in New Issue