ibm-messaging / mq-ansible

Ansible roles for IBM MQ
Apache License 2.0
29 stars 26 forks source link

Error handling for the queue manager module doesn't work if multiple queue managers are supplied #57

Open stewmcl opened 1 year ago

stewmcl commented 1 year ago

When supplying a queue manager name for the the module, you can supply multiple using a list e.g. ['qmgr1', 'qmgr2']

The problem currently is that while the queue manager module can handle this, the logging of return codes and output messages cannot. Currently if multiple queue managers are supplied then each one will overwrite the other's message and return code. For instance, using ['qmgr1', 'qmgr2'] the initial return code and message will relate to qmgr1 however as soon as qmgr2 has operations performed using it, the return code and message will overwrite the one created for qmgr1.

Finding a way to potentially use lists potentially to store the results might be a possible solution

JamRamPage commented 4 months ago

Is this to be handled by #104 ?

stewmcl commented 4 months ago

Hadn't realised we already had an issue concerning this, I'll close #104 as a duplicate of this and use this issue going forward