fix the --write flag (#2531)
--write sets k.manualReadOnly to false, but this was previously setting the read only state to true if k.manualReadOnly was set at allmine
parent
87a672b183
commit
b55c094f93
|
|
@ -304,7 +304,7 @@ func (k *K9s) IsReadOnly() bool {
|
|||
ro = *cfg.Context.ReadOnly
|
||||
}
|
||||
if k.manualReadOnly != nil {
|
||||
ro = true
|
||||
ro = *k.manualReadOnly
|
||||
}
|
||||
|
||||
return ro
|
||||
|
|
|
|||
Loading…
Reference in New Issue