Commit 28535aef authored by tywldx's avatar tywldx

fix

parent 2aa991fe
...@@ -299,8 +299,12 @@ admin.get('/get_systems_by_type_for_temp', async function(req, res) { ...@@ -299,8 +299,12 @@ admin.get('/get_systems_by_type_for_temp', async function(req, res) {
}); });
}); });
// 给jenkins使用获取环境的namespace // 给jenkins使用获取环境的namespace
admin.get('/get_systems_by_type_for_temp', async function(req, res) { admin.get('/get_namespace_by_type_for_jenkins/:_type', async function(req, res) {
let ns = await requestPromise({url:"http://192.168.4.24/api/qahome/list_env"}) let url = "";
if(req.params._type == "old"){
url = "http://192.168.4.24/api/qahome/list_env"
}
let ns = await requestPromise({url:url});
let ns_array = []; let ns_array = [];
for(let ist of ns.details.instances){ for(let ist of ns.details.instances){
ns_array.push(ist.name) ns_array.push(ist.name)
......
Markdown is supported
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