Fix get_cloud_platforms config usage.

This commit is contained in:
Matt Clay 2018-04-03 22:35:10 -07:00
parent b345b79dcd
commit c9fb054bc8

View file

@ -43,10 +43,11 @@ 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 isinstance(args, IntegrationConfig):
if args.list_targets:
return []