diff --git a/src/sunstone/models/OpenNebulaJSON/VirtualMachineJSON.rb b/src/sunstone/models/OpenNebulaJSON/VirtualMachineJSON.rb index 7e7e328a34..80b0fe0c1d 100644 --- a/src/sunstone/models/OpenNebulaJSON/VirtualMachineJSON.rb +++ b/src/sunstone/models/OpenNebulaJSON/VirtualMachineJSON.rb @@ -81,8 +81,8 @@ module OpenNebulaJSON when "recover" then self.recover(action_hash['params']) when "save_as_template" then self.save_as_template(action_hash['params']) when "disk_resize" then self.disk_resize(action_hash['params']) - when "lock" then self.lock(action_hash['params']) - when "unlock" then self.unlock(action_hash['params']) + when "lock" then self.lock(action_hash['params']['level'].to_i) + when "unlock" then self.unlock() else error_msg = "#{action_hash['perform']} action not " << " available for this resource" @@ -201,14 +201,6 @@ module OpenNebulaJSON super(params['name']) end - def lock(params=Hash.new) - super(params['level'].to_i) - end - - def unlock(params=Hash.new) - super() - end - def recover(params=Hash.new) super(params['result'].to_i) end