Skip to content

Conversation

@bennyt2
Copy link

@bennyt2 bennyt2 commented Jul 29, 2016

This commit allows a developer to specify the --vault-password-file argument.

commandParams = this.addParam(commandParams, "limit", "l");
commandParams = this.addParam(commandParams, "su", "U");
commandParams = this.addPathParam(commandParams, "privateKey", "-private-key");
commandParams = this.addParam(commandParams, "vaultPasswordFile", "-vault-password-file");
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably use addPathParam() instead of addParam(). However, when I tried using addPathParam(), I got this error

ERROR! The vault password file /srv/ansible_api/"/srv/ansible/test.txt" was not found

/srv/ansible_api/ is the working directory, and /srv/ansible/test.txt is the value I passed into the vaultPasswordFile() function.

addPathParam() works when passing a filename into privateKey(), so I'm not sure why it doesn't work with vaultPasswordFile().

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that addPathParam() is not working for the same reason of #28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants