From a8d7ded8fb4f5cf1e84c185d13c6fac1b607696c Mon Sep 17 00:00:00 2001 From: kairat_kushaev Date: Fri, 15 Jan 2016 11:50:43 +0300 Subject: [PATCH] Enhance description of instance-uuid option for image-create Current description of instance-uuid may confuse users because they may think that instance-uuid can serve as basis for image but it just stores instance-uuid as image-metadata. So we need to enhance the description in glanceclient. Change-Id: I55829d106c9d25374df6538b3071104ee5f215f2 Closes-Bug: #1496822 --- glanceclient/tests/unit/v2/fixtures.py | 5 ++++- glanceclient/v2/image_schema.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/glanceclient/tests/unit/v2/fixtures.py b/glanceclient/tests/unit/v2/fixtures.py index bc8793d..6cc2966 100644 --- a/glanceclient/tests/unit/v2/fixtures.py +++ b/glanceclient/tests/unit/v2/fixtures.py @@ -159,7 +159,10 @@ schema_fixture = { "type": "string" }, "instance_uuid": { - "description": "ID of instance used to create this image.", + "description": ("Metadata which can be used to record which " + "instance this image is associated with. " + "(Informational only, does not create an instance " + "snapshot.)"), "is_base": "false", "type": "string" }, diff --git a/glanceclient/v2/image_schema.py b/glanceclient/v2/image_schema.py index ad669ba..aee7144 100644 --- a/glanceclient/v2/image_schema.py +++ b/glanceclient/v2/image_schema.py @@ -195,7 +195,10 @@ _BASE_SCHEMA = { }, "instance_uuid": { "type": "string", - "description": "ID of instance used to create this image." + "description": ("Metadata which can be used to record which " + "instance this image is associated with. " + "(Informational only, does not create an instance " + "snapshot.)") }, "name": { "type": "string",