Skip to content

Commit 415d96c

Browse files
committed
bugfix topologies initialization in template content
1 parent df026bd commit 415d96c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cesnet_service_path_plugin/template_content.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ def full_width_page(self):
3535
# Initialize topology data
3636
topology_data = None
3737
topology_title = None
38+
topologies = {}
3839

3940
if segment:
4041
# Check if segment is part of any service path
4142
service_paths = ServicePathSegmentMapping.objects.filter(segment=segment).all()
42-
topologies = {}
4343
if service_paths:
4444
for sp in service_paths:
4545
# get data from service path model

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "cesnet_service_path_plugin"
7-
version = "5.2.1b6"
7+
version = "5.2.1b7"
88
description = "Adds ability to create, edit and view service paths in the network."
99
authors = [
1010
{name = "Jan Krupa", email = "jan.krupa@cesnet.cz"},

0 commit comments

Comments
 (0)