mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[vsphere] expose VM virtual hardware version
This commit is contained in:
parent
87aa5a64eb
commit
2041c0fd5d
3 changed files with 3 additions and 0 deletions
|
@ -109,6 +109,7 @@ module Fog
|
|||
:corespersocket => 'config.hardware.numCoresPerSocket',
|
||||
:overall_status => 'overallStatus',
|
||||
:guest_id => 'config.guestId',
|
||||
:hardware_version => 'config.version',
|
||||
}
|
||||
|
||||
def convert_vm_view_to_attr_hash(vms)
|
||||
|
|
|
@ -45,6 +45,7 @@ module Fog
|
|||
attribute :resource_pool
|
||||
attribute :instance_uuid # move this --> id
|
||||
attribute :guest_id
|
||||
attribute :hardware_version
|
||||
attribute :scsi_controller # this is the first scsi controller. Right now no more of them can be used.
|
||||
|
||||
def initialize(attributes={} )
|
||||
|
|
|
@ -8,6 +8,7 @@ module Fog
|
|||
vm_cfg = {
|
||||
:name => attributes[:name],
|
||||
:guestId => attributes[:guest_id],
|
||||
:version => attributes[:hardware_version],
|
||||
:files => { :vmPathName => vm_path_name(attributes) },
|
||||
:numCPUs => attributes[:cpus],
|
||||
:numCoresPerSocket => attributes[:corespersocket],
|
||||
|
|
Loading…
Reference in a new issue