summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Styk <mastyk@redhat.com>2019-05-06 12:19:15 +0200
committerMartin Styk <mastyk@redhat.com>2019-05-06 12:21:32 +0200
commit36f3c3ebda591e61a4817d515499a2a1536636f0 (patch)
tree6a97c73de398ab5359b48b3842dbd1dd19d22dde
parentd5f8c17df23479e79291052e2042e92cfe1124b7 (diff)
Fix broken output for beaker-client help
Change-Id: Ie6a40b72ea441e02a06c6caa2939c53ccf28574f Signed-off-by: Martin Styk <mastyk@redhat.com>
-rw-r--r--Client/src/bkr/client/command.py2
-rw-r--r--Client/src/bkr/client/commands/cmd_system_status.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/Client/src/bkr/client/command.py b/Client/src/bkr/client/command.py
index 6381598..ac5261b 100644
--- a/Client/src/bkr/client/command.py
+++ b/Client/src/bkr/client/command.py
@@ -378,7 +378,7 @@ class CommandOptionParser(optparse.OptionParser):
if getattr(plugin, 'hidden', False):
continue
is_admin = getattr(plugin, "admin", False)
- text = " %-30s %s" % (name, plugin.__doc__ or "")
+ text = " %-30s %s" % (name, plugin.__doc__.strip() if plugin.__doc__ else "")
if is_admin:
if admin:
admin_commands.append(text)
diff --git a/Client/src/bkr/client/commands/cmd_system_status.py b/Client/src/bkr/client/commands/cmd_system_status.py
index 9bd75a6..0fd234c 100644
--- a/Client/src/bkr/client/commands/cmd_system_status.py
+++ b/Client/src/bkr/client/commands/cmd_system_status.py
@@ -61,6 +61,9 @@ from bkr.client import BeakerCommand
class System_Status(BeakerCommand):
+ """
+ Return the current status of a system
+ """
enabled = True
def options(self):