Fix oversight in patch 221559

In patch 221559 with change id Ic3fc9ed5f3644497e4dd25a92ded01ee0224cdef,
a couple of calls to generate_subcommands() were not replaced with the
new method discover_and_generate_subcommands(). Fixing it in this patch.

Change-Id: I4f46d275a15685dc76e42b24b21b4930a94bc184
This commit is contained in:
Deepti Ramakrishna 2015-09-30 00:31:22 -07:00
parent f515a6fd7e
commit 1623a2ab09
1 changed files with 4 additions and 2 deletions

View File

@ -620,7 +620,8 @@ def document_single_project(os_command, output_dir):
out_file.write("""
<section xml:id=\"cinder_cli_v1\">
<title>Block Storage API v1 commands</title>\n""")
generate_subcommands(os_command, out_file, subcommands, None, "", "")
discover_and_generate_subcommands(os_command, out_file, subcommands,
None, "", "")
elif os_command == 'openstack':
out_file.write("""
<section xml:id=\"openstack_cli_identity_api_v2\">
@ -640,7 +641,8 @@ def document_single_project(os_command, output_dir):
["--os-image-api-version", "1"],
"_v1", " (v1)")
else:
generate_subcommands(os_command, out_file, subcommands, None, "", "")
discover_and_generate_subcommands(os_command, out_file, subcommands,
None, "", "")
# Print subcommands for different API versions
if os_command == 'cinder':