summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipalib/plugins/entitle.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ipalib/plugins/entitle.py b/ipalib/plugins/entitle.py
index 74ee874b7..1c1b7083e 100644
--- a/ipalib/plugins/entitle.py
+++ b/ipalib/plugins/entitle.py
@@ -488,7 +488,7 @@ class entitle_register(LDAPCreate):
takes_options = LDAPCreate.takes_options + (
Str('ipaentitlementid?',
label='UUID',
- doc=_('Enrollment UUID'),
+ doc=_('Enrollment UUID (not implemented)'),
flags=['no_create', 'no_update'],
),
Password('password',
@@ -516,6 +516,9 @@ class entitle_register(LDAPCreate):
os.environ['LANG'] = 'en_US'
locale.setlocale(locale.LC_ALL, '')
+ if 'ipaentitlementid' in options:
+ raise errors.ValidationError(name='ipaentitlementid', error='Registering to specific UUID is not supported yet.')
+
try:
registrations = api.Command['entitle_find']()
raise errors.AlreadyRegisteredError()