foreman_nutanix 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a292c029d7f973982d12a55659ec8c47e260d72cc21d6ca386cabd9a123c775d
|
|
4
|
+
data.tar.gz: 1353579dcfae3a08f561a7eac402f29d04b8ebc155481a56e21e9fccfc5d2602
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2c6d4c8ddc93b7eb4f2e36f1a36faeec837a143bee49d82b1f38434c74a044b0283b4eb83b0c8254616160386bb8fb6276a4cb9482d8622a3db73b0deaca51b7
|
|
7
|
+
data.tar.gz: 57c2f460081bf7b5f0270df7a52b7c6f91307e08569cc338a4b79b403bc98177da3133411a06a80f891067488c1b9a46553c67f37a48b34cea2b2566bafb9d63
|
|
@@ -59,6 +59,9 @@ module ForemanNutanix
|
|
|
59
59
|
boot_method: data['boot_method'],
|
|
60
60
|
secure_boot: data['secure_boot'],
|
|
61
61
|
gpus: data['gpus'],
|
|
62
|
+
disk_size_gb: data['disk_size_bytes'].to_i / (1024**3),
|
|
63
|
+
network_id: data['network_id'],
|
|
64
|
+
storage_container: data['container_id'],
|
|
62
65
|
})
|
|
63
66
|
vm.instance_variable_set(:@persisted, true)
|
|
64
67
|
vm
|
|
@@ -102,6 +105,7 @@ module ForemanNutanix
|
|
|
102
105
|
mac_address: vm_data['mac_address'],
|
|
103
106
|
ip_addresses: vm_data['ip_addresses'] || [],
|
|
104
107
|
create_time: vm_data['create_time'],
|
|
108
|
+
disk_size_gb: vm_data['disk_size_bytes'].to_i / (1024**3),
|
|
105
109
|
})
|
|
106
110
|
vm.instance_variable_set(:@persisted, true)
|
|
107
111
|
vm
|
|
@@ -17,12 +17,17 @@ compute_resource.available_images,
|
|
|
17
17
|
help_inline: _("Operating system image to use (optional)"),
|
|
18
18
|
} %>
|
|
19
19
|
|
|
20
|
+
<%# NOTE: If we're on a Host Edit page - show the selected
|
|
21
|
+
# network by not having a 'include_blank'. Once
|
|
22
|
+
# editing is implemented, this might be able to go away. %>
|
|
23
|
+
<% include_blank =
|
|
24
|
+
f.object.class == "ForemanNutanix::NutanixCompute" ? nil : _("Select Network") %>
|
|
20
25
|
<%= select_f f,
|
|
21
26
|
:network_id,
|
|
22
27
|
compute_resource.available_networks,
|
|
23
28
|
:id,
|
|
24
29
|
:name,
|
|
25
|
-
{ include_blank:
|
|
30
|
+
{ include_blank: include_blank, selected: f.object.try(:network_id) },
|
|
26
31
|
{ label: _("Network"), help_inline: _("Network/subnet for the VM") } %>
|
|
27
32
|
|
|
28
33
|
<%= select_f f,
|
|
@@ -30,7 +35,10 @@ compute_resource.available_networks,
|
|
|
30
35
|
compute_resource.available_storage_containers,
|
|
31
36
|
:id,
|
|
32
37
|
:name,
|
|
33
|
-
{
|
|
38
|
+
{
|
|
39
|
+
include_blank: _("Select Container"),
|
|
40
|
+
selected: f.object.try(:storage_container),
|
|
41
|
+
},
|
|
34
42
|
{
|
|
35
43
|
label: _("Storage Container"),
|
|
36
44
|
help_inline: _("Storage container for VM disks"),
|