fog-vsphere 3.6.3 → 3.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fog/vsphere/compute.rb +1 -0
- data/lib/fog/vsphere/requests/compute/create_vm.rb +1 -1
- data/lib/fog/vsphere/requests/compute/get_vm_first_sata_controller.rb +21 -0
- data/lib/fog/vsphere/requests/compute/vm_reconfig_cdrom.rb +1 -1
- data/lib/fog/vsphere/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c93f8cb4c51466540d02751656c83de747661c1a733ca27ebbdffde89f5c0dc
|
4
|
+
data.tar.gz: 54bc1daeb38c253cf87978cb6a51e5f7f8da70f84627b8e637da8af1e2dca3e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06d063d385dd60f23e5e8dce2cc195722c6d2152ba6afe25cde593ebf954e102f2138e0ad3720c2a823c01dcea7b7d4a9ff488c266387a135c272381405addfa
|
7
|
+
data.tar.gz: f0dbfd50e8887a2aeee725791b188748e4bd14416d82d5b8af53d16fe12ea5cbb52e2041c85fa6511e284ecd544ba41db92ab7beb8ca45b0286b5cffd2565cee
|
data/lib/fog/vsphere/compute.rb
CHANGED
@@ -252,7 +252,7 @@ module Fog
|
|
252
252
|
operation: options[:operation],
|
253
253
|
device: controller_class.new(key: options[:key] || (1000 + index),
|
254
254
|
busNumber: options[:bus_id] || index,
|
255
|
-
sharedBus: controller_get_shared_from_options(options))
|
255
|
+
**(options[:type] == RbVmomi::VIM::VirtualAHCIController ? {} : {sharedBus: controller_get_shared_from_options(options)}))
|
256
256
|
}
|
257
257
|
end
|
258
258
|
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Fog
|
2
|
+
module Vsphere
|
3
|
+
class Compute
|
4
|
+
class Real
|
5
|
+
def get_vm_first_sata_controller(vm_id)
|
6
|
+
ctrl = get_vm_ref(vm_id).config.hardware.device.find { |device| device.is_a?(RbVmomi::VIM::VirtualAHCIController) }
|
7
|
+
raise(Fog::Vsphere::Compute::NotFound) unless ctrl
|
8
|
+
{
|
9
|
+
type: ctrl&.class.to_s,
|
10
|
+
device_info: ctrl&.deviceInfo,
|
11
|
+
bus_number: ctrl&.busNumber,
|
12
|
+
key: ctrl&.key
|
13
|
+
}
|
14
|
+
end
|
15
|
+
end
|
16
|
+
class Mock
|
17
|
+
def get_vm_first_sata_controller(vm_id); end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -20,7 +20,7 @@ module Fog
|
|
20
20
|
device: RbVmomi::VIM::VirtualCdrom(
|
21
21
|
backing: backing,
|
22
22
|
key: cdrom_obj.key,
|
23
|
-
controllerKey: cdrom_obj.controllerKey,
|
23
|
+
controllerKey: options['controller_key'] || cdrom_obj.controllerKey,
|
24
24
|
connectable: RbVmomi::VIM::VirtualDeviceConnectInfo(
|
25
25
|
startConnected: options['start_connected'] || false,
|
26
26
|
connected: options['connected'] || false,
|
data/lib/fog/vsphere/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-vsphere
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.6.
|
4
|
+
version: 3.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- J.R. Garcia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-core
|
@@ -297,6 +297,7 @@ files:
|
|
297
297
|
- lib/fog/vsphere/requests/compute/get_storage_pod.rb
|
298
298
|
- lib/fog/vsphere/requests/compute/get_template.rb
|
299
299
|
- lib/fog/vsphere/requests/compute/get_virtual_machine.rb
|
300
|
+
- lib/fog/vsphere/requests/compute/get_vm_first_sata_controller.rb
|
300
301
|
- lib/fog/vsphere/requests/compute/get_vm_first_scsi_controller.rb
|
301
302
|
- lib/fog/vsphere/requests/compute/host_finish_maintenance.rb
|
302
303
|
- lib/fog/vsphere/requests/compute/host_shutdown.rb
|