Commit fb098180 authored by tywldx's avatar tywldx

fix

parent 28535aef
......@@ -304,7 +304,8 @@ admin.get('/get_namespace_by_type_for_jenkins/:_type', async function(req, res)
if(req.params._type == "old"){
url = "http://192.168.4.24/api/qahome/list_env"
}
let ns = await requestPromise({url:url});
let ns = await requestPromise({url:url,method:"GET"});
ns = JSON.parse(ns);
let ns_array = [];
for(let ist of ns.details.instances){
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