summaryrefslogtreecommitdiffstats
path: root/test/lib/ansible_test/_internal/config.py
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2022-04-29 23:15:21 +0200
committerMatt Clay <matt@mystile.com>2022-04-30 03:20:14 +0200
commit2cc74b04c49338b48af070ddd811b25b5d801c12 (patch)
tree708cfc1700a31bba111c9ef5223a29e808519686 /test/lib/ansible_test/_internal/config.py
parentansible-test - Remove obsolete code. (diff)
downloadansible-2cc74b04c49338b48af070ddd811b25b5d801c12.tar.xz
ansible-2cc74b04c49338b48af070ddd811b25b5d801c12.zip
ansible-test - Add multi-arch remote support.
Diffstat (limited to 'test/lib/ansible_test/_internal/config.py')
-rw-r--r--test/lib/ansible_test/_internal/config.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/test/lib/ansible_test/_internal/config.py b/test/lib/ansible_test/_internal/config.py
index 5da5fc00e4..060962fb2e 100644
--- a/test/lib/ansible_test/_internal/config.py
+++ b/test/lib/ansible_test/_internal/config.py
@@ -48,29 +48,6 @@ class TerminateMode(enum.Enum):
return self.name.lower()
-class ParsedRemote:
- """A parsed version of a "remote" string."""
- def __init__(self, arch, platform, version): # type: (t.Optional[str], str, str) -> None
- self.arch = arch
- self.platform = platform
- self.version = version
-
- @staticmethod
- def parse(value): # type: (str) -> t.Optional['ParsedRemote']
- """Return a ParsedRemote from the given value or None if the syntax is invalid."""
- parts = value.split('/')
-
- if len(parts) == 2:
- arch = None
- platform, version = parts
- elif len(parts) == 3:
- arch, platform, version = parts
- else:
- return None
-
- return ParsedRemote(arch, platform, version)
-
-
class EnvironmentConfig(CommonConfig):
"""Configuration common to all commands which execute in an environment."""
def __init__(self, args, command): # type: (t.Any, str) -> None