diff options
Diffstat (limited to 'tests/integration_tests/modules/test_ssh_keys_provided.py')
-rw-r--r-- | tests/integration_tests/modules/test_ssh_keys_provided.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/integration_tests/modules/test_ssh_keys_provided.py b/tests/integration_tests/modules/test_ssh_keys_provided.py index b6069376..576b78eb 100644 --- a/tests/integration_tests/modules/test_ssh_keys_provided.py +++ b/tests/integration_tests/modules/test_ssh_keys_provided.py @@ -9,7 +9,7 @@ system. import pytest -from tests.integration_tests.clouds import ImageSpecification +from tests.integration_tests.releases import CURRENT_RELEASE USER_DATA = """\ #cloud-config @@ -143,7 +143,7 @@ class TestSshKeysProvided: "HostCertificate /etc/ssh/ssh_host_rsa_key-cert.pub", "HostCertificate /etc/ssh/ssh_host_ed25519_key-cert.pub", ) - if ImageSpecification.from_os_image().release in {"bionic"}: + if CURRENT_RELEASE.series == "bionic": sshd_config_path = "/etc/ssh/sshd_config" else: sshd_config_path = "/etc/ssh/sshd_config.d/50-cloud-init.conf" |