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/volume/v1 | |
| parent | 53bbff67eb5c4e888cfca0bd6c70d868ac300377 (diff) | |
| download | python-openstackclient-a2e3a16221915946ee0d847b1e95187c0f628079.tar.gz | |
Rename all instances of 'metadata' to 'property'.
Change-Id: I454cbe685dc5afa0a09ecc976a90d6eb6bc57d14
Diffstat (limited to 'openstackclient/volume/v1')
| -rw-r--r-- | openstackclient/volume/v1/volume.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openstackclient/volume/v1/volume.py b/openstackclient/volume/v1/volume.py index 174ca3d4..f9641c54 100644 --- a/openstackclient/volume/v1/volume.py +++ b/openstackclient/volume/v1/volume.py @@ -76,9 +76,9 @@ class CreateVolume(show.ShowOne): help='Availability Zone to use', ) parser.add_argument( - '--meta-data', + '--property', metavar='<key=value>', - help='Optional metadata to set on volume creation', + help='Optional property to set on volume creation', ) parser.add_argument( '--image-ref', @@ -242,8 +242,8 @@ class SetVolume(command.Command): volume = utils.find_resource(volume_client.volumes, parsed_args.volume) meta = None - if parsed_args.meta_data: - meta = dict(v.split('=') for v in parsed_args.meta_data.split(' ')) + if parsed_args.property: + meta = dict(v.split('=') for v in parsed_args.property.split(' ')) volume_client.volumes.set_metadata(volume.id, meta) kwargs = {} |
