From 66205e8ea05e1c83c633a79d07d81d3fe86c8472 Mon Sep 17 00:00:00 2001 From: Dudás Ádám <dudas.adam@cloud.bme.hu> Date: Tue, 8 Apr 2014 23:04:53 +0200 Subject: [PATCH] vm: remove 'redeploy' operation --- circle/vm/operations.py | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/circle/vm/operations.py b/circle/vm/operations.py index b03001a..149e8d8 100644 --- a/circle/vm/operations.py +++ b/circle/vm/operations.py @@ -190,38 +190,6 @@ class RebootOperation(InstanceOperation): register_instance_operation(RebootOperation) -class RedeployOperation(InstanceOperation): - activity_code_suffix = 'redeploy' - id = 'redeploy' - name = _("redeploy") - description = _("""Redeploy virtual machine with network - - :param self: The virtual machine to redeploy. - - :param user: The user who's issuing the command. - :type user: django.contrib.auth.models.User - - :param task_uuid: The task's UUID, if the command is being executed - asynchronously. - :type task_uuid: str - """) - - def _operation(self, activity, user, system): - # Destroy VM - if self.instance.node: - self.instance._destroy_vm(activity) - - self.instance._cleanup_after_destroy_vm(activity) - - # Deploy VM - self.instance._schedule_vm(activity) - - self.instance._deploy_vm(activity) - - -register_instance_operation(RedeployOperation) - - class ResetOperation(InstanceOperation): activity_code_suffix = 'reset' id = 'reset' -- libgit2 0.26.0