Skip to content
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

Encryption fails if ANSIBLE_VAULT_PASSWORD_FILE is defined #45

Open
jmgrady opened this issue Feb 12, 2020 · 0 comments
Open

Encryption fails if ANSIBLE_VAULT_PASSWORD_FILE is defined #45

jmgrady opened this issue Feb 12, 2020 · 0 comments

Comments

@jmgrady
Copy link

jmgrady commented Feb 12, 2020

Describe the bug
If the environment variable, ANSIBLE_VAULT_PASSWORD_FILE is defined, encryption will fail with the following exception:

ERROR! Unexpected Exception, this is probably a bug: 'tuple' object has no attribute 'append'

To Reproduce
Steps to reproduce the behavior:

  1. Set and export ANSIBLE_VAULT_PASSWORD_FILE;
  2. Start atom
  3. Configure ansible-vault package as follows:
    • Set Ansible Vault absolute path
    • Enable automatic de- and encrypt: false
    • User vault password file defined in ansible.cfg: false
    • Use specific vault password file: true
    • Vault password file path: path to password file, e.g. /home/grady/.ansible-vault
  4. Open a file that has been encrypted using ansible-vault
  5. Decrypt by pressing Ctrl-Alt-0; file is decrypted correctly
  6. Encrypt the file by pressing Ctrl-Alt-0; file is not encrypted and an error is thrown:
ERROR! Unexpected Exception, this is probably a bug: 'tuple' object has no attribute 'append'

Expected behavior
Expected the file to be re-encrypted.

Note that the package throws the same error if automatic decrypt/encrypt is enabled and the file is closed.

Desktop:

  • Atom version 1.44.0
  • Ansible version 2.8.1
  • OS: Ubuntu 18.04.4 LTS

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant