when calling the cp_mgmt_publish module, the session always gets published, even if there are 0 changes in the current session.
Additionally, the module then reports back as "changed", with 0 published changes.
I would expect this module to check if there are changes to publish and only then publish it. Otherwise it should report back "ok".
Alternatively it could still publish 0 changes, but then report "ok".
As a workaround I'm using the following changed_when statement:
Hi,
when calling the
cp_mgmt_publish
module, the session always gets published, even if there are 0 changes in the current session. Additionally, the module then reports back as "changed", with 0 published changes.Example output:
I would expect this module to check if there are changes to publish and only then publish it. Otherwise it should report back "ok". Alternatively it could still publish 0 changes, but then report "ok".
As a workaround I'm using the following
changed_when
statement:It works, but feels a bit hacky.
Thanks Alex