Skip to content

Commit

Permalink
ansible-test - Add default for Windows remotes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattclay committed Jan 28, 2022
1 parent 26b43f4 commit 18ed2c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/ansible-test-windows-default.yaml
@@ -0,0 +1,2 @@
bugfixes:
- ansible-test - Add default entry for Windows remotes to be used with unknown versions.
1 change: 1 addition & 0 deletions test/lib/ansible_test/_data/completion/windows.txt
Expand Up @@ -3,3 +3,4 @@ windows/2012-R2 provider=aws
windows/2016 provider=aws
windows/2019 provider=aws
windows/2022 provider=aws
windows provider=aws
4 changes: 1 addition & 3 deletions test/lib/ansible_test/_internal/host_configs.py
Expand Up @@ -358,9 +358,7 @@ class WindowsRemoteConfig(RemoteConfig, WindowsConfig):
"""Configuration for a remoe Windows host."""
def get_defaults(self, context): # type: (HostContext) -> WindowsRemoteCompletionConfig
"""Return the default settings."""
return filter_completion(windows_completion()).get(self.name) or WindowsRemoteCompletionConfig(
name=self.name,
)
return filter_completion(windows_completion()).get(self.name) or windows_completion().get(self.platform)


@dataclasses.dataclass
Expand Down

0 comments on commit 18ed2c6

Please sign in to comment.