mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
vault: validate vault type
https://fedorahosted.org/freeipa/ticket/5211 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
committed by
Jan Cholasta
parent
76ab7d9bae
commit
6941f4eec7
@@ -38,7 +38,7 @@ import krbV
|
||||
|
||||
from ipalib.frontend import Command, Object, Local
|
||||
from ipalib import api, errors
|
||||
from ipalib import Bytes, Str, Flag
|
||||
from ipalib import Bytes, Flag, Str, StrEnum
|
||||
from ipalib import output
|
||||
from ipalib.crud import PKQuery, Retrieve, Update
|
||||
from ipalib.plugable import Registry
|
||||
@@ -279,11 +279,12 @@ class vault(LDAPObject):
|
||||
label=_('Description'),
|
||||
doc=_('Vault description'),
|
||||
),
|
||||
Str(
|
||||
StrEnum(
|
||||
'ipavaulttype?',
|
||||
cli_name='type',
|
||||
label=_('Type'),
|
||||
doc=_('Vault type'),
|
||||
values=(u'standard', u'symmetric', u'asymmetric', ),
|
||||
default=u'standard',
|
||||
autofill=True,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user