summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2011-06-27 14:38:42 -0400
committerRob Crittenden <rcritten@redhat.com>2011-07-14 19:15:15 -0400
commitef29207047cb0d4af422d54cdb805f13d241db2e (patch)
treeac6ef2d2a6033ac3119d66e988ed8f6a49843375 /ipalib
parent37e3bf2a6096ea18f46501bf5f2a51c55e829595 (diff)
downloadfreeipa-ef29207047cb0d4af422d54cdb805f13d241db2e.tar.gz
freeipa-ef29207047cb0d4af422d54cdb805f13d241db2e.tar.xz
freeipa-ef29207047cb0d4af422d54cdb805f13d241db2e.zip
Document registering to an entitlement server with a UUID as not implemented.
It was my understanding that we would be able to pass in an existing UUID when registering to connect to an existing registration (for the case where IPA is re-installed). This is supported in the REST API but not python-rhsm. https://fedorahosted.org/freeipa/ticket/1216
Diffstat (limited to 'ipalib')
-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()