mediaconnect: fix, actually fixing create_flow to allow no outputs argument (#5096)
This commit is contained in:
parent
600ac8efa5
commit
147f52fedc
@ -97,7 +97,7 @@ class MediaConnectBackend(BaseBackend):
|
||||
for index, _source in enumerate(flow.sources):
|
||||
self._add_source_details(_source, flow_id, f"127.0.0.{index}")
|
||||
|
||||
for index, output in enumerate(flow.outputs):
|
||||
for index, output in enumerate(flow.outputs or []):
|
||||
if output.get("protocol") in ["srt-listener", "zixi-pull"]:
|
||||
output["listenerAddress"] = f"{index}.0.0.0"
|
||||
|
||||
|
@ -108,6 +108,7 @@ def test_create_flow_alternative_succeeds():
|
||||
"SourcePriority": {"PrimarySource": "Source-B"},
|
||||
"State": "ENABLED",
|
||||
},
|
||||
outputs=None,
|
||||
)
|
||||
|
||||
response = client.create_flow(**channel_config)
|
||||
|
Loading…
Reference in New Issue
Block a user