Skip to content

Commit 0aff356

Browse files
committed
Handle Network olso events that do not specify network_type and suchlike
1 parent 01b943a commit 0aff356

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/understack-workflows/understack_workflows/oslo_event/neutron_network.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ def from_event_dict(cls, data: dict) -> Self:
3434
network["name"],
3535
UUID(network["project_id"]),
3636
bool(network["router:external"]),
37-
network["provider:network_type"],
38-
network["provider:physical_network"],
39-
network["provider:segmentation_id"],
37+
network.get("provider:network_type"),
38+
network.get("provider:physical_network"),
39+
network.get("provider:segmentation_id"),
4040
)
4141

4242

0 commit comments

Comments
 (0)