mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -07:00
Fix ansible-test cloud integration bugs.
This commit is contained in:
parent
17e07a27b2
commit
0573b8bcd2
3 changed files with 81 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue