diff options
| author | Josh Kearney <josh@jk0.org> | 2013-05-07 11:18:38 -0500 |
|---|---|---|
| committer | Josh Kearney <josh@jk0.org> | 2013-05-07 11:18:38 -0500 |
| commit | a2e3a16221915946ee0d847b1e95187c0f628079 (patch) | |
| tree | 94cf5e261029e3c83af9f10b7278da5a9e15bbfc /openstackclient/image | |
| parent | 53bbff67eb5c4e888cfca0bd6c70d868ac300377 (diff) | |
| download | python-openstackclient-a2e3a16221915946ee0d847b1e95187c0f628079.tar.gz | |
Rename all instances of 'metadata' to 'property'.
Change-Id: I454cbe685dc5afa0a09ecc976a90d6eb6bc57d14
Diffstat (limited to 'openstackclient/image')
| -rw-r--r-- | openstackclient/image/v1/image.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openstackclient/image/v1/image.py b/openstackclient/image/v1/image.py index fa566bd9..43cae21c 100644 --- a/openstackclient/image/v1/image.py +++ b/openstackclient/image/v1/image.py @@ -92,11 +92,11 @@ class CreateImage(show.ShowOne): help="Similar to --location, but this indicates that the image" " should immediately be copied from the data store.") parser.add_argument( - "--metadata", + "--property", metavar="<key=value>", default=[], action="append", - help="Arbitrary metadata to associate with image.") + help="Arbitrary property to associate with image.") protected_group = parser.add_mutually_exclusive_group() protected_group.add_argument( "--protected", @@ -136,8 +136,8 @@ class CreateImage(show.ShowOne): args.pop("variables") args["properties"] = {} - for _metadata in args.pop("metadata"): - key, value = _metadata.split("=", 1) + for _property in args.pop("property"): + key, value = _property.split("=", 1) args["properties"][key] = value if "location" not in args and "copy_from" not in args: |
