diff --git a/ipaclient/remote_plugins/schema.py b/ipaclient/remote_plugins/schema.py index c2d0b824e..d447d941e 100644 --- a/ipaclient/remote_plugins/schema.py +++ b/ipaclient/remote_plugins/schema.py @@ -608,7 +608,7 @@ def get_package(server_info, client): s = topic['topic_topic'] if isinstance(s, bytes): s = s.decode('utf-8') - module.topic = s.partition('/')[0] + module.topic = str(s).partition('/')[0] else: module.topic = None diff --git a/ipatests/test_integration/test_commands.py b/ipatests/test_integration/test_commands.py index 5f3d0061a..faea96f06 100644 --- a/ipatests/test_integration/test_commands.py +++ b/ipatests/test_integration/test_commands.py @@ -180,3 +180,10 @@ class TestIPACommand(IntegrationTest): ["ipa", "console", filename], ) assert "ipalib.config.Env" in result.stdout_text + + def test_list_help_topics(self): + result = self.master.run_command( + ["ipa", "help", "topics"], + raiseonerr=False + ) + assert result.returncode == 0