Displaying 2 results from an estimated 2 matches for "4c29bcf".
Did you mean:
4c09bc
2009 May 15
1
[PATCH server] provide default uuid and mac if not provided for create.
Signed-off-by: Scott Seago <sseago at redhat.com>
---
src/app/services/vm_service.rb | 25 ++++++++++++++++---------
1 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/src/app/services/vm_service.rb b/src/app/services/vm_service.rb
index 4c29bcf..47ac5f5 100644
--- a/src/app/services/vm_service.rb
+++ b/src/app/services/vm_service.rb
@@ -52,15 +52,9 @@ module VmService
def svc_new(vm_resource_pool_id)
raise ActionError.new("VM Resource Pool is required.") unless vm_resource_pool_id
- # random MAC
- mac = [ 0x00, 0...
2009 May 15
0
[PATCH server] final cleanup for service layer refactoring.
...action_privilege(@action)</tt>
def svc_vm_actions(pool_id, vm_action, vm_ids)
- # from before_filter
@pool = VmResourcePool.find(pool_id)
@parent = @pool.parent
@action = vm_action
diff --git a/src/app/services/vm_service.rb b/src/app/services/vm_service.rb
index fb58b51..4c29bcf 100644
--- a/src/app/services/vm_service.rb
+++ b/src/app/services/vm_service.rb
@@ -71,7 +71,6 @@ module VmService
# === Required permissions
# [<tt>Privilege::MODIFY</tt>] for the vm's VmResourcePool
def svc_create(vm_hash, start_now)
- # from before_filter
vm_has...