Closed saiello closed 1 year ago
The problem might be in the implementation of these lines:
// module_utils/kafka_lib_topic.py [63-74]
if len(topics_to_maybe_update) > 0:
if not module.check_mode:
topics_changed, warn = manager.ensure_topics(
topics_to_maybe_update
)
changed = len(topics_changed) > 0
if changed:
msg += ''.join(['topic %s successfully updated. ' %
topic for topic in topics_changed])
changes.update({
'topic_updated': topics_changed
})
I've realized the issue might be resolved in #103. I will check it
Expected Behavior
Running kafka_topic module in check mode, to update a topic, should reflect actual behaviour and report potential changes.
Actual Behavior
Running in check mode reports " Nothing to do", however removing the
--check
option perform the updates.Ad-hoc commands to Reproduce the Problem