diff --git a/changelogs/fragments/core_ci_remote_alias.yml b/changelogs/fragments/core_ci_remote_alias.yml new file mode 100644 index 00000000000..f3acbe2b1c1 --- /dev/null +++ b/changelogs/fragments/core_ci_remote_alias.yml @@ -0,0 +1,3 @@ +bugfixes: + - ansible-test remote alias - Alias values for ``--controller`` and ``--target`` are properly resolved for ``remote``. + Previously, remote alias values (e.g. ``fedora/latest``) resolved to the correct name only for the legacy ``--remote`` arg, failing with an unknown image error for the newer args. diff --git a/test/lib/ansible_test/_internal/host_configs.py b/test/lib/ansible_test/_internal/host_configs.py index 82b3ec0106d..42640b41df4 100644 --- a/test/lib/ansible_test/_internal/host_configs.py +++ b/test/lib/ansible_test/_internal/host_configs.py @@ -420,6 +420,7 @@ class PosixRemoteConfig(RemoteConfig, ControllerHostConfig, PosixConfig): super().apply_defaults(context, defaults) self.become = self.become or defaults.become + self.name = defaults.name @property def have_root(self) -> bool: @@ -450,6 +451,7 @@ class WindowsRemoteConfig(RemoteConfig, WindowsConfig): super().apply_defaults(context, defaults) self.connection = self.connection or defaults.connection + self.name = defaults.name @dataclasses.dataclass