tomoh1r / ansible-vault

This project aim to R/W an ansible-vault yaml file
GNU General Public License v3.0
54 stars 32 forks source link

Seeing new issue with newer ansible #6

Closed harlowja closed 7 years ago

harlowja commented 7 years ago

Seeing the following now happen (maybe ansible changed the api?):

>>> utils.load_secrets("secrets/daddy.eyaml")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/jxharlow/Dev/els/openstack-deploy/os_deploy/utils.py", line 87, in load_secrets
    return munch.munchify(v.load(fh.read()))
  File "/Users/jxharlow/.venv/lib/python2.7/site-packages/ansible_vault/api.py", line 18, in load
    return yaml.safe_load(self.vault.decrypt(stream))
  File "/Users/jxharlow/.venv/lib/python2.7/site-packages/ansible/parsing/vault/__init__.py", line 543, in decrypt
    _matches = match_secrets(self.secrets, vault_id_matchers)
  File "/Users/jxharlow/.venv/lib/python2.7/site-packages/ansible/parsing/vault/__init__.py", line 399, in match_secrets
    matches = [(vault_id, secret) for vault_id, secret in secrets if vault_id in target_vault_ids]
ValueError: need more than 1 value to unpack
harlowja commented 7 years ago

Ansible 2.4.0 may have caused some funkyiness here... just fyi.

Reverting back to 2.3.x make things happy again btw.

enrh commented 7 years ago

I'm also having this issue.

brokenjacobs commented 7 years ago

same here. my dynamic inventory is broken with 2.4.0

tomoh1r commented 7 years ago

Hi there, Thanks for your information. I'll investigate it.

tomoh1r commented 7 years ago

Fix it and release 1.1.0 to pypi. Check it out.