From 6fb37b65ccb8b3f09d7627b290a267de9d8006cb Mon Sep 17 00:00:00 2001 From: Orr Ben Galim Date: Wed, 1 Jan 2025 17:39:35 +0200 Subject: [PATCH] fix create_temporary response handling --- plugins/module_utils/vmware_rest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/module_utils/vmware_rest.py b/plugins/module_utils/vmware_rest.py index 6d5373c2..e777f332 100644 --- a/plugins/module_utils/vmware_rest.py +++ b/plugins/module_utils/vmware_rest.py @@ -194,7 +194,7 @@ async def update_changed_flag(data, status, operation): elif operation == "update" and status in [200, 204]: data["failed"] = False data["changed"] = True - elif operation == "upgrade" and status in [200]: + elif operation in ["upgrade", "create_temporary"] and status == 200: data["failed"] = False data["changed"] = True elif operation == "set" and status in [200, 204]: