From 36970196172eed6ca713ef4e1ff33b28b7ff87bd Mon Sep 17 00:00:00 2001 From: shakvaal Date: Wed, 20 Aug 2025 21:34:44 +0200 Subject: [PATCH] Update queue_manager.py When temporarily starting queue manager to apply an MQSC file use the "-ns" option to avoid potential clashing with existing listeners or issuing unwanted sender channel traffic. --- plugins/modules/queue_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/modules/queue_manager.py b/plugins/modules/queue_manager.py index f22b153..6e421c5 100644 --- a/plugins/modules/queue_manager.py +++ b/plugins/modules/queue_manager.py @@ -70,7 +70,7 @@ def run_mqsc_file(qmname, module): result['msg'] = 'MQSC configuration successfully applied to queue manager.' else: - rc, stdout, stderr = module.run_command(['strmqm', qmname]) + rc, stdout, stderr = module.run_command(['strmqm', '-ns', qmname]) rc, stdout, stderr = module.run_command(["runmqsc", qmname, "-f", module.params['mqsc_file']]) result['rc'] = rc result['output'] = stdout + stderr @@ -210,4 +210,4 @@ def main(): module.exit_json(**result) if __name__ == '__main__': - main() \ No newline at end of file + main()