From 60fae1d6e92abdbd3c05dc475604494adcd21a73 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Fri, 27 Feb 2015 11:56:16 +0100 Subject: [PATCH] [commands] use --os-auth-type token only for python-openstackclient After the merge of I14c9479ef7ded7b7c62b0d976706e3d7e26a6cd6 the additional parameter --os-auth-type token is used for every client. This is wrong, the additonal parameter should only be used when generating documentation for the python-openstackclient. Change-Id: I801637691bfd4298859ee539c5adaf0943330836 --- os_doc_tools/commands.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/os_doc_tools/commands.py b/os_doc_tools/commands.py index f2637567..89052ab0 100644 --- a/os_doc_tools/commands.py +++ b/os_doc_tools/commands.py @@ -613,8 +613,12 @@ def document_single_project(os_command, output_dir):
Image Service API v1 commands\n""") - generate_subcommands(os_command, out_file, blacklist, - subcommands, ["--os-auth-type", "token"], "", "") + if os_command == 'openstack': + generate_subcommands(os_command, out_file, blacklist, + subcommands, ["--os-auth-type", "token"], "", "") + else: + generate_subcommands(os_command, out_file, blacklist, + subcommands, None, "", "") if os_command == 'cinder': out_file.write("
\n")