[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
This commit is contained in:
parent
25847ba82c
commit
60fae1d6e9
@ -613,8 +613,12 @@ def document_single_project(os_command, output_dir):
|
||||
<section xml:id=\"glance_cli_v1\">
|
||||
<title>Image Service API v1 commands</title>\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(" </section>\n")
|
||||
|
Loading…
x
Reference in New Issue
Block a user