Commit 72f313ff authored by tywldx's avatar tywldx

f

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