@@ -0,0 +1,1004 @@
+from flow_utils import BaseTask%0Afrom actions import NovaAction %0A%0A%0Aclass ServerEvacuateTask(BaseTask,NovaAction):%0A%0A    def execute(self, server, on_shared_storage):%0A%0A        success = False%0A        error_message = %22%22%0A        n_client = self._get_client()%0A        try:%0A            logging.info(%22Resurrecting instance: %25s%22 %25 server)%0A            (response, dictionary) = n_client.servers.evacuate(%0A                server=server,%0A                on_shared_storage=on_shared_storage)%0A%0A            if response == None:%0A                res_message = %22No response while evacuating instance%22%0A            elif response.status_code == 200:%0A                success = True%0A                res_message = response.reason%0A            else:%0A                res_message = response.reason%0A        %0A        except Exception as e:%0A            res_message = %22Error while evacuating instance: %25s%22 %25 e%0A%0A        return %7B%0A            %22uuid%22: server,%0A            %22accepted%22: success,%0A            %22reason%22: error_message,%0A        %7D%0A%0A

add server_evacuate task