Skip to content

Commit c9d4c5e

Browse files
committed
fix: ignore empty custom labels
1 parent 109c2de commit c9d4c5e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/smartinspect/protocols/cloud/cloud_protocol.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,9 @@ def _parse_custom_labels_option(self, option: str) -> None:
275275
name, value = pair
276276

277277
if (
278-
len(name) <= self._MAX_ALLOWED_CUSTOM_LABEL_COMPONENT_LENGTH
278+
name != ""
279+
and value != ""
280+
and len(name) <= self._MAX_ALLOWED_CUSTOM_LABEL_COMPONENT_LENGTH
279281
and len(value) <= self._MAX_ALLOWED_CUSTOM_LABEL_COMPONENT_LENGTH
280282
):
281283
self._custom_labels[name] = value

0 commit comments

Comments
 (0)