Skip to content

Commit

Permalink
Remove obsolete deprecated alternative label name
Browse files Browse the repository at this point in the history
  • Loading branch information
8R0WNI3 committed Nov 29, 2024
1 parent 8005c73 commit 91466d0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions dso/labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class ScanningHint(LabelValue):
@dataclasses.dataclass(frozen=True)
class BinaryIdScanLabel(Label):
name = 'cloud.gardener.cnudie/dso/scanning-hints/binary_id/v1'
_alt_name = 'cloud.gardener.cnudie/dso/scanning-hints/binary/v1' # deprecated
value: ScanningHint


Expand Down Expand Up @@ -114,8 +113,6 @@ def _label_to_type() -> dict[str, Label]:
label_names_to_types = {}
for t in types:
label_names_to_types[t.name] = t
if (n := getattr(t, '_alt_name', None)):
label_names_to_types[n] = t

return label_names_to_types

Expand Down

0 comments on commit 91466d0

Please sign in to comment.