Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions kayobe/ansible.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,7 @@
import sys
import tempfile

# TODO(dougszu): Backwards compatibility for Ansible 11. This exception
# handler can be removed in the G cycle.
try:
from ansible.parsing.vault import EncryptedString
except ImportError:
# Ansible 11
from ansible.parsing.yaml.objects import AnsibleVaultEncryptedUnicode
EncryptedString = AnsibleVaultEncryptedUnicode
from ansible.parsing.vault import EncryptedString

from kayobe import exception
from kayobe import utils
Expand Down
10 changes: 1 addition & 9 deletions kayobe/tests/unit/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,7 @@
import unittest
from unittest import mock

# TODO(dougszu): Backwards compatibility for Ansible 11. This exception
# handler can be removed in the G cycle.
try:
from ansible.parsing.vault import EncryptedString
except ImportError:
# Ansible 11
from ansible.parsing.yaml.objects import AnsibleVaultEncryptedUnicode
EncryptedString = AnsibleVaultEncryptedUnicode

from ansible.parsing.vault import EncryptedString
import yaml

from kayobe import exception
Expand Down