Skip to content

Commit

Permalink
Merge pull request #217 from dichn/frozendict
Browse files Browse the repository at this point in the history
Fix the wrong validator of ModulemdUnit.profiles [RHELDST-22116]
  • Loading branch information
rohanpm authored Dec 7, 2023
2 parents 16334b4 + 4667b0c commit f1a9579
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pubtools/pulplib/_impl/model/unit/modulemd.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
frozenlist_or_none_sorted_converter,
frozendict_or_none_converter,
)
from ..validate import optional_list_of, optional_dict
from ..validate import optional_list_of, optional_frozendict


@attr.s(kw_only=True, frozen=True)
Expand Down Expand Up @@ -136,7 +136,7 @@ class ModulemdUnit(Unit):
type=dict,
pulp_field="profiles",
default=None,
validator=optional_dict,
validator=optional_frozendict,
converter=frozendict_or_none_converter,
)
"""The profiles of this modulemd unit."""
Expand Down

0 comments on commit f1a9579

Please sign in to comment.