We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e7f8ffb + c212c72 commit bd8c30cCopy full SHA for bd8c30c
pkg/networks/sudoers.go
@@ -22,7 +22,10 @@ func Sudoers() (string, error) {
22
23
// names must be in stable order to be able to check if sudoers file needs updating
24
names := make([]string, 0, len(config.Networks))
25
- for name := range config.Networks {
+ for name, nw := range config.Networks {
26
+ if nw.Mode == ModeUserV2 {
27
+ continue // no sudo needed
28
+ }
29
names = append(names, name)
30
}
31
sort.Strings(names)
0 commit comments