Skip to content

Commit c028815

Browse files
authored
Merge pull request #525 from stackhpc/upstream/master-2026-02-16
Synchronise master with upstream
2 parents 49d6602 + 06c025e commit c028815

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

kayobe/ansible.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,7 @@
2121
import sys
2222
import tempfile
2323

24-
# TODO(dougszu): Backwards compatibility for Ansible 11. This exception
25-
# handler can be removed in the G cycle.
26-
try:
27-
from ansible.parsing.vault import EncryptedString
28-
except ImportError:
29-
# Ansible 11
30-
from ansible.parsing.yaml.objects import AnsibleVaultEncryptedUnicode
31-
EncryptedString = AnsibleVaultEncryptedUnicode
24+
from ansible.parsing.vault import EncryptedString
3225

3326
from kayobe import exception
3427
from kayobe import utils

kayobe/tests/unit/test_utils.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,7 @@
1818
import unittest
1919
from unittest import mock
2020

21-
# TODO(dougszu): Backwards compatibility for Ansible 11. This exception
22-
# handler can be removed in the G cycle.
23-
try:
24-
from ansible.parsing.vault import EncryptedString
25-
except ImportError:
26-
# Ansible 11
27-
from ansible.parsing.yaml.objects import AnsibleVaultEncryptedUnicode
28-
EncryptedString = AnsibleVaultEncryptedUnicode
29-
21+
from ansible.parsing.vault import EncryptedString
3022
import yaml
3123

3224
from kayobe import exception

0 commit comments

Comments
 (0)