From ddc5defe5390d24ee81726e418fb74c464438001 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 14 Aug 2014 22:55:13 +0200 Subject: [PATCH] Fix duplicate help strings Currently: $ sahara help bash-completion usage: sahara bash-completion Prints all of the commands to stdout to support bash completion. Prints all of the commands and options to stdout so that the sahara.bash_completion script doesn't have to hard code them. $ sahara help job-binary-data-create usage: sahara job-binary-data-create [--file FILE] Store data in the internal DB. Store data in the internal DB. Use 'swift upload' instead of this command. Use this command only if Swift is not available. Update the strings to avoid duplication. Change-Id: I4bb692026e1bfc2c210a976f3dfedb550d544f26 --- saharaclient/api/shell.py | 1 - saharaclient/shell.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/saharaclient/api/shell.py b/saharaclient/api/shell.py index 27282067..2eac1293 100644 --- a/saharaclient/api/shell.py +++ b/saharaclient/api/shell.py @@ -561,7 +561,6 @@ def do_job_binary_data_list(cs, args): def do_job_binary_data_create(cs, args): """Store data in the internal DB. - Store data in the internal DB. Use 'swift upload' instead of this command. Use this command only if Swift is not available. """ diff --git a/saharaclient/shell.py b/saharaclient/shell.py index f1d7c551..6d546df5 100644 --- a/saharaclient/shell.py +++ b/saharaclient/shell.py @@ -719,7 +719,7 @@ class OpenStackSaharaShell(object): extension.run_hooks(hook_type, *args, **kwargs) def do_bash_completion(self, _args): - """Prints all of the commands to stdout to support bash completion. + """Prints arguments for bash-completion. Prints all of the commands and options to stdout so that the sahara.bash_completion script doesn't have to hard code them.