Skip to content

Encryption fails if ANSIBLE_VAULT_PASSWORD_FILE is defined #45

@jmgrady

Description

@jmgrady

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions