mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
bug #1846: Fix live migration in Sunstone
This commit is contained in:
1 parent
c189e304b2
commit
4d2cb9b114
1 file changed
+5
-8
@@ -47,8 +47,8 @@ module OpenNebulaJSON
|
||||
when "deploy" then self.deploy(action_hash['params'])
|
||||
when "finalize" then self.finalize
|
||||
when "hold" then self.hold
|
||||
when "livemigrate" then self.live_migrate(action_hash['params'])
|
||||
when "migrate" then self.migrate(action_hash['params'])
|
||||
when "livemigrate" then self.migrate(action_hash['params'], true)
|
||||
when "migrate" then self.migrate(action_hash['params'], false)
|
||||
when "resume" then self.resume
|
||||
when "release" then self.release
|
||||
when "stop" then self.stop
|
||||
@@ -87,12 +87,9 @@ module OpenNebulaJSON
|
||||
super(params['host_id'])
|
||||
end
|
||||
|
||||
def live_migrate(params=Hash.new)
|
||||
super(params['host_id'])
|
||||
end
|
||||
|
||||
def migrate(params=Hash.new)
|
||||
super(params['host_id'])
|
||||
def migrate(params=Hash.new, live=false, enforce=false)
|
||||
# TODO add enforce parameter
|
||||
super(params['host_id'], live)
|
||||
end
|
||||
|
||||
def save_as(params=Hash.new)
|
||||
|
||||
Reference in new issue
Block a user