remove iso/ prefix from disk filename

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-01-17 11:48:50 -08:00
parent faea8bf08d
commit b29b1dd08f

View File

@ -220,7 +220,7 @@ function parseDisk (disk) { // disk in format: STORAGE: FILENAME, ARG1=..., ARG2
let parsed = {};
let kvpairs = disk.split(",");
parsed.storage = kvpairs[0].split(":")[0];
parsed.filename = kvpairs[0].split(":")[1];
parsed.filename = kvpairs[0].split(":")[1].replace("iso/", "");
kvpairs.shift();
kvpairs.forEach((element) => {
let key = element.split("=")[0];