Skip to content

Commit 109c2de

Browse files
committed
fix: CloudProtocolConnectionStringBuilder._custom_labels is an object field but a class field now
Otherwise, it'd be shared across the instances of the class in the same runtime.
1 parent 17ff9ca commit 109c2de

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/smartinspect/connections/builders/cloud_protocol_connection_string_builder.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@
1414

1515

1616
class CloudProtocolConnectionStringBuilder(TcpProtocolConnectionStringBuilder):
17-
_custom_labels: collections.OrderedDict = collections.OrderedDict()
18-
1917
def __init__(self, parent: "ConnectionStringBuilder"):
2018
super().__init__(parent)
19+
self._custom_labels: collections.OrderedDict = collections.OrderedDict()
2120

2221
def end_protocol(self) -> "ConnectionStringBuilder":
2322
self._parent.cb.add_option("customlabels", CloudProtocol.compose_custom_labels_string(self._custom_labels))

0 commit comments

Comments
 (0)