mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Generate ssh key once for network tests.
This commit is contained in:
@@ -21,6 +21,7 @@ import lib.thread
|
||||
|
||||
from lib.core_ci import (
|
||||
AnsibleCoreCI,
|
||||
SshKey,
|
||||
)
|
||||
|
||||
from lib.manage_ci import (
|
||||
@@ -188,6 +189,9 @@ def command_network_integration(args):
|
||||
if args.platform:
|
||||
instances = [] # type: list [lib.thread.WrappedThread]
|
||||
|
||||
# generate an ssh key (if needed) up front once, instead of for each instance
|
||||
SshKey(args)
|
||||
|
||||
for platform_version in args.platform:
|
||||
platform, version = platform_version.split('/', 1)
|
||||
platform_target = 'network/%s/' % platform
|
||||
|
||||
Reference in New Issue
Block a user