#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
    sys.exit(api.Backend.cli.run(argv))
  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
process_keyword_arguments
    self.prompt_interactively(cmd, kw)
  File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1269, in
prompt_interactively
    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):
ipa-server-4.4.0-4.el7.x86_64

How reproducible:
always


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:

master:

  • 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.

Metadata