mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix get_cloud_platforms config usage.
This commit is contained in:
parent
b345b79dcd
commit
c9fb054bc8
1 changed files with 4 additions and 3 deletions
|
@ -43,12 +43,13 @@ def initialize_cloud_plugins():
|
|||
|
||||
def get_cloud_platforms(args, targets=None):
|
||||
"""
|
||||
:type args: IntegrationConfig
|
||||
:type args: TestConfig
|
||||
:type targets: tuple[IntegrationTarget] | None
|
||||
:rtype: list[str]
|
||||
"""
|
||||
if args.list_targets:
|
||||
return []
|
||||
if isinstance(args, IntegrationConfig):
|
||||
if args.list_targets:
|
||||
return []
|
||||
|
||||
if targets is None:
|
||||
cloud_platforms = set(args.metadata.cloud_config or [])
|
||||
|
|
Loading…
Reference in a new issue