foreman_fog_proxmox 0.13.2 → 0.13.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15adca3cf1f65b7b543dcb24972d640c7cbd78ca11c6c7e657a1d1d0da2e250c
|
4
|
+
data.tar.gz: 387a162262465681620bf37c69ecac793757b09b7b592cd1209ce97741748a17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1222697f1f9a8eba96c0f45156420e1437139b2e8927c31944bc8e78ce915ba37f52e595d3e25edc3ab56ebc96db09f27866677f256674681814909dd57cf9fa
|
7
|
+
data.tar.gz: 0d1f4df3e6be994ef693df0d89755123fd440ed9d0eb2bdd660b10a8c55d0cf12bddd425bd0078fc9b1d5a2f14647a90ae7c8b01f9c0e3f6cd866d4f564933fc
|
@@ -48,7 +48,7 @@ function volumeFieldsetId(item, type){
|
|
48
48
|
}
|
49
49
|
|
50
50
|
function indexByIdAndType(item, storage_type, vm_type){
|
51
|
-
|
51
|
+
var regex = new RegExp(vm_type +"_volume_" + storage_type +"_(\\d+)");
|
52
52
|
return item.match(regex)[1];
|
53
53
|
}
|
54
54
|
|
@@ -58,10 +58,10 @@ function volidByIndexAndTag(index, tag){
|
|
58
58
|
|
59
59
|
function hasCloudinit(){
|
60
60
|
result = false;
|
61
|
-
|
61
|
+
var volume_id = volumeFieldsetId('cloud_init', 'server').attr('id');
|
62
62
|
if (volume_id !== undefined){
|
63
|
-
|
64
|
-
|
63
|
+
var index = indexByIdAndType(volume_id, 'cloud_init', 'server');
|
64
|
+
var volid = volidByIndexAndTag(index, 'input');
|
65
65
|
result = volid.includes("cloudinit");
|
66
66
|
}
|
67
67
|
return result;
|
@@ -69,15 +69,15 @@ function hasCloudinit(){
|
|
69
69
|
|
70
70
|
function hasCdrom(){
|
71
71
|
result = false;
|
72
|
-
|
72
|
+
var volume_id = volumeFieldsetId('cdrom', 'server').attr('id');
|
73
73
|
if (volume_id !== undefined){
|
74
|
-
|
75
|
-
|
76
|
-
|
74
|
+
var index = indexByIdAndType(volume_id, 'cdrom', 'server');
|
75
|
+
var checked = $("input[id^='host_compute_attributes_volumes_attributes_" + index + "_cdrom']:checked").val();
|
76
|
+
var isCdrom = checked === 'cdrom';
|
77
77
|
result = isCdrom;
|
78
|
-
|
78
|
+
var isImage = checked === 'image';
|
79
79
|
if (isImage) {
|
80
|
-
|
80
|
+
var volid = volidByIndexAndTag(index, 'select');
|
81
81
|
result = volid.includes("iso");
|
82
82
|
}
|
83
83
|
}
|