diff options
| author | Zuul <zuul@review.openstack.org> | 2018-10-15 22:07:43 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2018-10-15 22:07:43 +0000 |
| commit | 02f492ae4cc52ed2642f42bc0c1e5e417ebfe527 (patch) | |
| tree | 727dedeec375a966cccbcde0440dfa73372acdbd /openstackclient/volume/v2 | |
| parent | c19aee4c705e8d9070c6649a1fa522da2d0778cc (diff) | |
| parent | 651f0c38a1f364953dc3cb3f7458385410395fd8 (diff) | |
| download | python-openstackclient-02f492ae4cc52ed2642f42bc0c1e5e417ebfe527.tar.gz | |
Merge "Handle not having cinderclient.v1 available"
Diffstat (limited to 'openstackclient/volume/v2')
| -rw-r--r-- | openstackclient/volume/v2/volume.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openstackclient/volume/v2/volume.py b/openstackclient/volume/v2/volume.py index 8ab61d2a..7a5c207a 100644 --- a/openstackclient/volume/v2/volume.py +++ b/openstackclient/volume/v2/volume.py @@ -212,6 +212,9 @@ class CreateVolume(command.ShowOne): raise exceptions.CommandError( _("ERROR: --user is deprecated, please use" " --os-username instead.")) + if parsed_args.multi_attach: + LOG.warning(_("'--multi-attach' option is no longer supported by " + "the block storage service.")) volume = volume_client.volumes.create( size=size, @@ -224,7 +227,6 @@ class CreateVolume(command.ShowOne): imageRef=image, source_volid=source_volume, consistencygroup_id=consistency_group, - multiattach=parsed_args.multi_attach, scheduler_hints=parsed_args.hint, ) |
