fix(codapi): fix reading box config for writable

This commit is contained in:
jaronnie 2024-04-03 16:49:15 +08:00
parent f250034cd4
commit 530958f8ef

View File

@ -129,6 +129,9 @@ func setBoxDefaults(box, defs *Box) {
if box.Network == "" {
box.Network = defs.Network
}
if !box.Writable {
box.Writable = defs.Writable
}
if box.Volume == "" {
box.Volume = defs.Volume
}