fix(codapi): fix reading box config for writable
This commit is contained in:
parent
f250034cd4
commit
530958f8ef
|
|
@ -129,6 +129,9 @@ func setBoxDefaults(box, defs *Box) {
|
||||||
if box.Network == "" {
|
if box.Network == "" {
|
||||||
box.Network = defs.Network
|
box.Network = defs.Network
|
||||||
}
|
}
|
||||||
|
if !box.Writable {
|
||||||
|
box.Writable = defs.Writable
|
||||||
|
}
|
||||||
if box.Volume == "" {
|
if box.Volume == "" {
|
||||||
box.Volume = defs.Volume
|
box.Volume = defs.Volume
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user