LinuxUserManager: correct parameters for AddUser()
Some checks failed
ci/woodpecker/push/go-lint Pipeline failed

This commit is contained in:
Andrew Woodlee 2025-03-11 16:13:29 -05:00
parent c89dde186a
commit fe27c6396a

View File

@ -15,7 +15,7 @@ func (l LinuxUserManager) NewLinuxManager() *LinuxUserManager {
} }
// AddUser adds a new user to the system. // AddUser adds a new user to the system.
func (l LinuxUserManager) AddUser(username, homeDir, shell string, createHome, isSystem bool, groups, args []string) (string, []string) { func (l LinuxUserManager) AddUser(username, homeDir, shell string, isSystem, createHome bool, groups, args []string) (string, []string) {
baseArgs := []string{} baseArgs := []string{}
if isSystem { if isSystem {
@ -40,7 +40,6 @@ func (l LinuxUserManager) AddUser(username, homeDir, shell string, createHome, i
if createHome { if createHome {
baseArgs = append(baseArgs, "-m") baseArgs = append(baseArgs, "-m")
} }
args = append(baseArgs, username) args = append(baseArgs, username)