keep disk filename prefixes to assign value correctly
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
b29b1dd08f
commit
0127b60bf3
@ -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].replace("iso/", "");
|
||||
parsed.filename = kvpairs[0];
|
||||
kvpairs.shift();
|
||||
kvpairs.forEach((element) => {
|
||||
let key = element.split("=")[0];
|
||||
|
Loading…
Reference in New Issue
Block a user