Skip to content

Commit

Permalink
add missing become- and connect-user (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Oct 6, 2024
1 parent d35eb49 commit 110196c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

## Version 0

### 0.0.25
### 0.0.24-3

* Disable data-refresh if in background
* Allow to save current form by using SHIFT+S
* Add missing become- and connect-user

----

Expand Down
6 changes: 6 additions & 0 deletions src/ansibleguy-webui/aw/execute/play_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,15 @@ def _commandline_arguments(job: Job, execution: JobExecution, creds: BaseJobCred
if is_set(creds.become_pass):
cmd_arguments.append('--ask-become-pass')

if is_set(creds.become_user):
cmd_arguments.append(f'--become-user {creds.become_user}')

if is_set(creds.connect_pass):
cmd_arguments.append('--ask-pass')

if is_set(creds.connect_user):
cmd_arguments.append(f'--user {creds.connect_user}')

if is_set(creds.vault_pass):
cmd_arguments.append('--ask-vault-pass')

Expand Down

0 comments on commit 110196c

Please sign in to comment.