-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use stdin to send the password to ansible-vault command #359
base: main
Are you sure you want to change the base?
Conversation
src/main/groovy/com/rundeck/plugins/ansible/ansible/AnsibleVault.java
Outdated
Show resolved
Hide resolved
add unit test
src/main/groovy/com/rundeck/plugins/ansible/ansible/AnsibleVault.java
Outdated
Show resolved
Hide resolved
@@ -26,19 +27,26 @@ public class AnsibleVault { | |||
|
|||
public final String ANSIBLE_VAULT_COMMAND = "ansible-vault"; | |||
|
|||
private ProcessExecutor.ProcessExecutorBuilder processExecutorBuilder; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want this to be re-used across invocations of methods? Perhaps this should be an instance variable in each method? This appears to be an intentional change, just not sure why we need it. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just added that to mock it in the test
use stdin to send the password to ansible-vault command