foreman_fog_proxmox 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of foreman_fog_proxmox might be problematic. Click here for more details.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f6ccfa5c56960acddaacf20dd5d89665ab7dfcc5479204fd9abd8e0a2af791e
|
4
|
+
data.tar.gz: d5c61cfdaa156b8d6f323d98913a6ae76c57ed16a47613dd53319f12a5e09163
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a051879d69327057c56c26a1c0301e0790079cf313ef78252067efc729959db7def39d44d051c9a0f7c4c32a0ccbac5cba979cb4029fabbd5d04b7e4d214c61
|
7
|
+
data.tar.gz: c188de68693be5e1f8547cbf24e5c5f2d54ea88c221c5d25620d018aa3d1dd1ca9dff0581800debde179e0f3891951f54fd3a070467f4137be40af35d6396135
|
@@ -139,9 +139,9 @@ function updateOption(select_id, option, option_id){
|
|
139
139
|
}
|
140
140
|
|
141
141
|
function selectIds(start_options_id, end_options_id){
|
142
|
-
|
143
|
-
|
144
|
-
|
142
|
+
var select_host_id = 'select[id^=host_' + start_options_id + ']';
|
143
|
+
var compute_attributes_regex = /compute_attributes_/gi;
|
144
|
+
var select_profile_id = 'select[id^=compute_attribute_vm_attrs_' + start_options_id.replace(compute_attributes_regex, '') + ']';
|
145
145
|
if (end_options_id != undefined) {
|
146
146
|
select_host_id += '[id$=' + end_options_id + ']';
|
147
147
|
select_profile_id += '[id$=' + end_options_id.replace(compute_attributes_regex, '') + ']';
|
@@ -151,8 +151,8 @@ function selectIds(start_options_id, end_options_id){
|
|
151
151
|
|
152
152
|
function updateOptions(options_path, start_options_id, end_options_id, start_second_options_id, end_second_options_id, option_id, node_id, second_id = undefined) {
|
153
153
|
|
154
|
-
|
155
|
-
|
154
|
+
var select_ids = selectIds(start_options_id, end_options_id);
|
155
|
+
var select_second_ids;
|
156
156
|
if ( start_second_options_id != undefined && end_second_options_id != undefined) {
|
157
157
|
select_second_ids = selectIds(start_second_options_id, end_second_options_id);
|
158
158
|
}
|
@@ -173,7 +173,7 @@ function updateOptions(options_path, start_options_id, end_options_id, start_sec
|
|
173
173
|
initOptions(select_second_ids);
|
174
174
|
}
|
175
175
|
$.each(options, function(i,option){
|
176
|
-
for (
|
176
|
+
for (var j = 0; j < select_ids.length; j++) {
|
177
177
|
updateOption(select_ids[j], option, option_id);
|
178
178
|
}
|
179
179
|
});
|