Commit df39b806 authored by alexander lunev's avatar alexander lunev
Browse files

Update tower/ui/node_logic.js

parent 7d7d4f07
Pipeline #17212 passed with stages
in 52 seconds
......@@ -26,6 +26,16 @@ var node_logic = {
},
on_add: function () {
var i = $$("datacenter_list").data.pull;
var d = $$("node_form").elements.datacenter;
var my_keys = Object.keys(i);
for (j = 0; j < my_keys.length; j++) {
if (my_keys[j] != 'id') {
var obj = i[my_keys[j]];
d.data.options.add({id: obj.id, value: obj.name});
}
}
node_logic.show_form();
$$("node_form").setValues({
login_as: "ansible",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment