1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

M #~: Fix lost var in sunstone flow form (#714)

This commit is contained in:
Sergio Betanzos 2021-01-28 19:26:27 +01:00 committed by GitHub
parent bbda529cea
commit 68ab8b1636
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ define(function(require) {
var networks_json = WizardFields.retrieve($(".network_attrs_class", context));
var typePrefix = "type_";
var network_values = Object.keys(networks_json).filter(function(key) {
var networks_values = Object.keys(networks_json).filter(function(key) {
return key.indexOf(typePrefix) == 0; // get all networks names with prefix 'type_'
}).reduce(function(networks, typeKey) {
var type = networks_json[typeKey];
@ -50,7 +50,7 @@ define(function(require) {
return {
"merge_template": Object.assign(
{ custom_attrs_values, "roles": [] },
show_vnet_instantiate_flow ? { network_values } : null
show_vnet_instantiate_flow ? { networks_values } : null
)
};
}