Fix 'connector' parameter in update attachments API

The 'connector' parameter in update attachments is not optional
in API implementation. This patch is to set the 'connector' to
be manadatory.

Change-Id: Id58abaa9ee345b274ebfbe6b89c1047f2e580ff3
This commit is contained in:
jeremy.zhang 2017-06-22 11:00:48 +08:00 committed by Jeremy Zhang
parent b60b052c53
commit 502d87cfe5
2 changed files with 9 additions and 1 deletions

View File

@ -224,7 +224,7 @@ Request
- project_id: project_id_path - project_id: project_id_path
- attachment_id: attachment_id_1 - attachment_id: attachment_id_1
- connector: connector - connector: connector_1
Request Example Request Example
--------------- ---------------

View File

@ -548,6 +548,14 @@ connector:
in: body in: body
required: false required: false
type: object type: object
connector_1:
description: |
The ``connector`` object. The internal structure of connector depends on
the volume driver implementation. For details about the required elements
in the structure, see the documentation for the volume driver.
in: body
required: true
type: object
consistencygroup_id: consistencygroup_id:
description: | description: |
The UUID of the consistency group. The UUID of the consistency group.