#6174 ipa otptoken-add bytes object has no attribute confirm
Closed: Fixed None Opened 7 years ago by jcholast.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1364310

Description of problem:

[root@rhel7-1 ~]# ipa otptoken-add --type=hotp --key --no-qrcode
ipa: ERROR: AttributeError: 'Bytes' object has no attribute 'confirm'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1350, in run
  File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1108, in run
    kw = self.process_keyword_arguments(cmd, kw)
  File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1088, in
    self.prompt_interactively(cmd, kw)
  File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1269, in
    param.label, param.confirm
AttributeError: 'Bytes' object has no attribute 'confirm'
ipa: ERROR: an internal error has occurred

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.  ipa-server-install
2.  ipa user-add testuser --password
3.  kinit testuser
4.  ipa otptoken-add --type=hotp --key --no-qrcode

Actual results:

failure above

Expected results:

no failure

Additional info:


  • e9c1d21 parameters: move the confirm kwarg to Param

Metadata Update from @jcholast:
- Issue assigned to jcholast
- Issue set to the milestone: FreeIPA 4.4.1

6 years ago

Login to comment on this ticket.