Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:ansible-semaphore/semaphore into…
Browse files Browse the repository at this point in the history
… develop
  • Loading branch information
fiftin committed Jan 26, 2024
2 parents c9c7ccf + 36b18a9 commit 77c4efd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion db/AccessKey.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ func (key *AccessKey) Install(usage AccessKeyRole, logger lib.Logger) (installat
switch key.Type {
case AccessKeyLoginPassword:
content := make(map[string]string)
content["ansible_become_user"] = key.LoginPassword.Login
if len(key.LoginPassword.Login) > 0 {
content["ansible_become_user"] = key.LoginPassword.Login
}
content["ansible_become_password"] = key.LoginPassword.Password
var bytes []byte
bytes, err = json.Marshal(content)
Expand Down

0 comments on commit 77c4efd

Please sign in to comment.