mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Fix ansible-test cloud integration bugs.
This commit is contained in:
@@ -195,10 +195,11 @@ def delegate_docker(args, exclude, require):
|
||||
'--env', 'HTTPTESTER=1',
|
||||
]
|
||||
|
||||
cloud_platforms = get_cloud_providers(args)
|
||||
if isinstance(args, TestConfig):
|
||||
cloud_platforms = get_cloud_providers(args)
|
||||
|
||||
for cloud_platform in cloud_platforms:
|
||||
test_options += cloud_platform.get_docker_run_options()
|
||||
for cloud_platform in cloud_platforms:
|
||||
test_options += cloud_platform.get_docker_run_options()
|
||||
|
||||
test_id, _ = docker_run(args, test_image, options=test_options)
|
||||
|
||||
@@ -268,10 +269,11 @@ def delegate_remote(args, exclude, require):
|
||||
|
||||
ssh_options = []
|
||||
|
||||
cloud_platforms = get_cloud_providers(args)
|
||||
if isinstance(args, TestConfig):
|
||||
cloud_platforms = get_cloud_providers(args)
|
||||
|
||||
for cloud_platform in cloud_platforms:
|
||||
ssh_options += cloud_platform.get_remote_ssh_options()
|
||||
for cloud_platform in cloud_platforms:
|
||||
ssh_options += cloud_platform.get_remote_ssh_options()
|
||||
|
||||
try:
|
||||
manage.ssh(cmd, ssh_options)
|
||||
|
||||
Reference in New Issue
Block a user