Skip to content

Commit

Permalink
fix the --write flag (#2531)
Browse files Browse the repository at this point in the history
--write sets k.manualReadOnly to false, but this was previously setting the read only state to true if k.manualReadOnly was set at all
  • Loading branch information
doy-materialize committed Feb 15, 2024
1 parent 87a672b commit b55c094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/config/k9s.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ func (k *K9s) IsReadOnly() bool {
ro = *cfg.Context.ReadOnly
}
if k.manualReadOnly != nil {
ro = true
ro = *k.manualReadOnly
}

return ro
Expand Down

0 comments on commit b55c094

Please sign in to comment.