From 936faac069b99f1ec1ac0d76bb8c4998c854e5d2 Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Mon, 5 Oct 2020 13:31:48 -0300 Subject: [PATCH] fix: return result of batch execution --- wildfly.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wildfly.py b/wildfly.py index 94daf07..6d72b5e 100644 --- a/wildfly.py +++ b/wildfly.py @@ -90,11 +90,11 @@ class ActionModule(ActionBase): result = merge_hash(result, dict(changed=True)) if not dry_run: - self.execute_command( + result = merge_hash(result, self.execute_command( '{} --output-json'.format(cli_command), stdin=batch_script, check_mode_unsafe=True - ) + )) return result