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