[cli-ref] Remove Image API V1
Image API V1 is deprecated. Change-Id: I92480671ad858c72a2ad4da24becfc93adc08c82
This commit is contained in:
parent
f2fcfc5794
commit
4750342c85
|
@ -679,27 +679,10 @@ def document_single_project(os_command, output_dir, continue_on_error):
|
|||
out_file.write(" export OS_VOLUME_API_VERSION=1\n\n")
|
||||
|
||||
out_file.write("This chapter describes the commands with API v2.\n\n")
|
||||
elif os_command == 'glance':
|
||||
format_heading("Image service API v2 commands", 2, out_file)
|
||||
|
||||
discover_and_generate_subcommands(os_command, out_file, subcommands,
|
||||
None, "", "")
|
||||
|
||||
# Print subcommands for different API versions
|
||||
if os_command == 'glance':
|
||||
out_file.write("\n")
|
||||
format_heading("Image service API v1 commands", 2, out_file)
|
||||
out_file.write("As of this version, the default API version is 2.\n")
|
||||
out_file.write("You can select an API version to use by adding the\n")
|
||||
out_file.write(":option:`--os-image-api-version` parameter or by\n")
|
||||
out_file.write("setting the corresponding environment variable:\n\n")
|
||||
|
||||
out_file.write(".. code-block:: console\n\n")
|
||||
out_file.write(" export OS_IMAGE_API_VERSION=1\n\n")
|
||||
discover_and_generate_subcommands(os_command, out_file, subcommands,
|
||||
["--os-image-api-version", "1"],
|
||||
"_v1", " (v1)")
|
||||
|
||||
print("Finished.\n")
|
||||
out_file.close()
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue