Skip to content

Commit

Permalink
Merge pull request #1675 from s3lph/fix-1669
Browse files Browse the repository at this point in the history
fix: #1669
  • Loading branch information
fiftin authored Jan 26, 2024
2 parents 5171354 + 244bc7e commit 36b18a9
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 36b18a9

Please sign in to comment.