search for: queue_action

Displaying 4 results from an estimated 4 matches for "queue_action".

2009 Jun 29
0
[PATCH server] Add svc_vm_actions method to VmService.
...action_args) @vm = Vm.find(id) + unless @vm.valid_action?(vm_action) + raise ActionError.new("#{vm_action} is an invalid action.") + end authorized!(VmTask.action_privilege(vm_action), VmTask.action_privilege_object(vm_action, at vm)) @task = @vm.queue_action(@user, vm_action, action_args) unless @task - raise ActionError.new("#{vm_action} is an invalid action.") + raise ActionError.new("#{vm_action} cannot be performed on this vm.") + end + return "#{@vm.description}: #{vm_action} was successfully queued.&q...
2009 Jun 29
2
One more fix
This resend includes the rebase, but fixes a problem I just noticed with nil/empty checks.
2009 Jun 29
2
Resend of Cloud UI/service patches
This is a resend of the 2-patch series from a week or so ago, needed to be rebased due to some commits on next
2009 Jun 22
2
Patch series for Cloud Vm Actions
The following two patches should be applied in the order: * [PATCH server] Add svc_vm_actions method to VmService. * [PATCH server] Cloud UI layer to initiate actions on vms. The service layer patch should work fine on its own (and not break anything), but cloud patch relies on service being there.