Commit 72f313ff authored by tywldx's avatar tywldx

f

parent 88ddcca7
...@@ -227,12 +227,22 @@ function formatInfo(obj) { ...@@ -227,12 +227,22 @@ function formatInfo(obj) {
let time_then = new Date(obj.start_time); let time_then = new Date(obj.start_time);
// obj.service = obj.service[0]; // obj.service = obj.service[0];
let post_info = have_console(obj.service); let post_info = have_console(obj.service);
branch = "";
branch_no_time = "";
branch_time = "";
try {
branch = obj.image.split(":")[1];
branch_no_time = obj.image.split(":")[1].split("-")[0];
branch_time = obj.image.split(":")[1].split("-")[1];
} catch (error) {
console.log(obj.image)
}
let info = { let info = {
image: obj.image, image: obj.image,
name: obj.microservice_name || "", name: obj.microservice_name || "",
branch: obj.image.split(":")[1] || "", branch: branch,
branch_no_time: obj.image.split(":")[1].split("-")[0] || "", branch_no_time: branch_no_time,
branch_time: obj.image.split(":")[1].split("-")[1] || "", branch_time: branch_time,
host: "", host: "",
host_ip: obj.host_ip || "", host_ip: obj.host_ip || "",
health: "", health: "",
......
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