From 0d9c0271836a1a4c8f072e5c97424014df3dc374 Mon Sep 17 00:00:00 2001 From: KATO Tomoyuki Date: Wed, 24 Aug 2016 22:55:46 +0900 Subject: [PATCH] [cli-ref] remove deprecated Block Storage API v1 Change-Id: I0f5ca8c55818e6ee28428c7a4e2bd4cb71109f51 --- os_doc_tools/commands.py | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/os_doc_tools/commands.py b/os_doc_tools/commands.py index 7ba16fea..dbc08326 100644 --- a/os_doc_tools/commands.py +++ b/os_doc_tools/commands.py @@ -678,18 +678,14 @@ def document_single_project(os_command, output_dir, continue_on_error): subcommands = data.get('subcommands') if os_command == 'cinder': - format_heading("Block Storage API v2 commands", 2, out_file) - out_file.write("You can select an API version to use by adding the\n") out_file.write(":option:`--os-volume-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_VOLUME_API_VERSION=2\n\n") + out_file.write(" export OS_VOLUME_API_VERSION=1\n\n") - discover_and_generate_subcommands(os_command, out_file, subcommands, - ["--os-volume-api-version", "2"], - "", "") + out_file.write("This chapter describes the commands with API v2.\n\n") elif os_command == 'openstack': format_heading("OpenStack with Identity API v3 commands", 2, out_file) @@ -717,13 +713,6 @@ def document_single_project(os_command, output_dir, continue_on_error): None, "", "") # Print subcommands for different API versions - if os_command == 'cinder': - out_file.write("\n") - format_heading("Block Storage API v1 commands (DEPRECATED)", - 2, out_file) - - discover_and_generate_subcommands(os_command, out_file, subcommands, - None, "_v1", " (v1)") if os_command == 'glance': out_file.write("\n") format_heading("Image service API v1 commands", 2, out_file)