Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1362012
Description of problem: Running ipa hbactest now fails with ipa: ERROR: TypeError: cannot concatenate 'str' and 'bool' objects 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 1115, in run rv = cmd.output_for_cli(self.api.Backend.textui, result, *args, **options) File "/usr/lib/python2.7/site-packages/ipaclient/plugins/hbactest.py", line 52, in output_for_cli textui.print_indented(result) File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 251, in print_indented print((CLI_TAB * indent + text)) TypeError: cannot concatenate 'str' and 'bool' objects ipa: ERROR: an internal error has occurred Version-Release number of selected component (if applicable): ipa-admintools-4.4.0-4.el7.noarch python2-ipalib-4.4.0-4.el7.noarch python2-ipaclient-4.4.0-4.el7.noarch It's the same version IdM on the server side. How reproducible: Deterministic. Steps to Reproduce: 1. Have IPA enrolled client, some user and HBAC service. 2. Run ipa hbactest --user=bob --host=wiki.example.test --service=wikiapp Actual results: -------------------- Access granted: True -------------------- Matched rules: allow_wikiapp Not matched rules: allow_all_users_services ipa: ERROR: TypeError: cannot concatenate 'str' and 'bool' objects 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 1115, in run rv = cmd.output_for_cli(self.api.Backend.textui, result, *args, **options) File "/usr/lib/python2.7/site-packages/ipaclient/plugins/hbactest.py", line 52, in output_for_cli textui.print_indented(result) File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 251, in print_indented print((CLI_TAB * indent + text)) TypeError: cannot concatenate 'str' and 'bool' objects ipa: ERROR: an internal error has occurred Expected results: No traceback, no error. Additional info:
attachment freeipa-frenaud-0013-Fix-ipa-hbactest-output.patch
master:
Metadata Update from @pvoborni: - Issue assigned to frenaud - Issue set to the milestone: FreeIPA 4.4.1
Login to comment on this ticket.