diff --git a/plugins/modules/event.py b/plugins/modules/event.py index 29750c3d..0926b2b3 100644 --- a/plugins/modules/event.py +++ b/plugins/modules/event.py @@ -221,10 +221,9 @@ def _build_api_payload(client, params): def send_event(client, path, payload, check_mode): - if check_mode: - return True, payload - utils.put(client, path, payload) - return True, utils.get(client, path) + if not check_mode: + utils.put(client, path, payload) + return True, payload def main():