Fix NoneType error for volume snapshot create command
In volume snapshot command, <volume> is the same as <snapshot-name> when --volume is not specified, but <volume> cannot be None, so when <snapshot-name> is not specified (<snapshot-name> is None), a NoneType error appears. So make <snapshot-name> no longer optional, it should be always present. Change-Id: I3d9f10753a8ef601e70816421c160598e2cc811f Closes-bug: #1659894
This commit is contained in:
doc/source
openstackclient
releasenotes/notes
@ -27,6 +27,21 @@ Backwards Incompatible Changes
|
||||
.. * Remove in: <5.0>
|
||||
.. * Commit: <tbd>
|
||||
|
||||
Release 3.10
|
||||
------------
|
||||
|
||||
1. The positional argument ``<snapshot-name>`` of the ``volume snapshot create``
|
||||
command is no longer optional.
|
||||
|
||||
Previously when the ``--volume`` option was
|
||||
present ``<snapshot-name>`` defaulted to the ``--volume`` value. When the
|
||||
``--volume`` option is not present now it defaults to the value of
|
||||
``<snapshot-name>``.
|
||||
|
||||
* As of: 3.10
|
||||
* Bug: 1659894
|
||||
* Commit: https://review.openstack.org/440497
|
||||
|
||||
Release 3.0
|
||||
-----------
|
||||
|
||||
|
@ -49,7 +49,7 @@ Create new volume snapshot
|
||||
.. _volume_snapshot_create-snapshot-name:
|
||||
.. describe:: <snapshot-name>
|
||||
|
||||
Name of the new snapshot (default to None)
|
||||
Name of the new snapshot
|
||||
|
||||
volume snapshot delete
|
||||
----------------------
|
||||
|
Reference in New Issue
Block a user