summaryrefslogtreecommitdiffstats
path: root/ipaserver/plugins/otptoken.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2016-06-30 06:37:16 +0200
committerJan Cholasta <jcholast@redhat.com>2016-06-30 16:32:20 +0200
commitae5f11b4de1d5e353a2e1b8345e316949f4b75ed (patch)
tree33511a859f80bc8119e853135fc07076f451630b /ipaserver/plugins/otptoken.py
parent16f33ddb51523fe9a4c68e91519099991ece10a5 (diff)
downloadfreeipa-ae5f11b4de1d5e353a2e1b8345e316949f4b75ed.tar.gz
freeipa-ae5f11b4de1d5e353a2e1b8345e316949f4b75ed.tar.xz
freeipa-ae5f11b4de1d5e353a2e1b8345e316949f4b75ed.zip
server: define missing virtual attributes
Move virtual attributes defined in output params of methods into params of the related object. This fixes the virtual attributes being ommited in CLI output. https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipaserver/plugins/otptoken.py')
-rw-r--r--ipaserver/plugins/otptoken.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipaserver/plugins/otptoken.py b/ipaserver/plugins/otptoken.py
index fda05ce0b..56b8c911b 100644
--- a/ipaserver/plugins/otptoken.py
+++ b/ipaserver/plugins/otptoken.py
@@ -264,6 +264,10 @@ class otptoken(LDAPObject):
minvalue=0,
flags=('no_update'),
),
+ Str('uri?',
+ label=_('URI'),
+ flags={'virtual_attribute', 'no_create', 'no_update', 'no_search'},
+ ),
)
@@ -277,10 +281,6 @@ class otptoken_add(LDAPCreate):
Flag('no_qrcode', label=_('Do not display QR code'), default=False),
)
- has_output_params = LDAPCreate.has_output_params + (
- Str('uri?', label=_('URI')),
- )
-
def execute(self, ipatokenuniqueid=None, **options):
return super(otptoken_add, self).execute(ipatokenuniqueid, **options)