Revision 5db7d087
Added by Martin Matuška about 10 years ago
app/services/fog_extensions/vsphere/mini_server.rb | ||
---|---|---|
module FogExtensions
|
||
module Vsphere
|
||
class MiniServer
|
||
attr_reader :name, :identity, :cpus, :memory, :state, :path
|
||
attr_reader :name, :identity, :cpus, :corespersocket, :memory, :state, :path
|
||
|
||
def initialize (raw, path = nil, uuid = nil)
|
||
hardware = raw.config.hardware
|
||
... | ... | |
@name = raw.name
|
||
@identity = uuid
|
||
@cpus = hardware.numCPU
|
||
@corespersocket = hardware.numCoresPerSocket
|
||
@memory = hardware.memoryMB * 1024 * 1024
|
||
@state = raw.runtime.powerState
|
||
@path = path
|
Also available in: Unified diff
fixes #3996 Support to assign both cores and CPUs to VMWare guests