mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-07-29 15:55:47 -05:00
batch, schema: use Dict instead of Any
Add new Dict parameter class and use it in the batch and command_defaults plugins. https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
@@ -1961,3 +1961,12 @@ class DNSNameParam(Param):
|
||||
def _rule_only_relative(self, _, value):
|
||||
if self.only_relative and value.is_absolute():
|
||||
return _('must be relative')
|
||||
|
||||
|
||||
class Dict(Param):
|
||||
"""
|
||||
A parameter for dictionary.
|
||||
"""
|
||||
|
||||
type = dict
|
||||
type_error = _("must be dictionary")
|
||||
|
||||
Reference in New Issue
Block a user