From dfcb468c1da3513d18da39969ef55bd22bc6685b Mon Sep 17 00:00:00 2001 From: wangxiyuan Date: Tue, 27 Oct 2015 09:20:56 +0800 Subject: [PATCH] Fix the missing help descripiton of "image-create" Now, when use "glance help" to show the help message, the description of 'image-create' is missing. Change-Id: I748209222c540e0024580dccac850ea465d176b4 Closes-bug: #1510340 --- glanceclient/common/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glanceclient/common/utils.py b/glanceclient/common/utils.py index bf23f2d..9d584fd 100644 --- a/glanceclient/common/utils.py +++ b/glanceclient/common/utils.py @@ -16,6 +16,7 @@ from __future__ import print_function import errno +import functools import hashlib import json import os @@ -77,6 +78,7 @@ def on_data_require_fields(data_fields, required=REQUIRED_FIELDS_ON_DATA): args = ('--' + x.replace('_', '-') for x in fields) return ', '.join(args) + @functools.wraps(func) def func_wrapper(gc, args): # Set of arguments with data fields = set(a[0] for a in vars(args).items() if a[1])