summaryrefslogtreecommitdiff
path: root/openstackclient/volume
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2022-09-14 13:40:17 +0100
committerStephen Finucane <sfinucan@redhat.com>2022-09-14 13:44:02 +0100
commit3fc585332f79358489285eabc298e01007599128 (patch)
tree870b8a3eea2bbd36f00cc143488a34af6e749add /openstackclient/volume
parentc6065c7a4796ad0a679a13cb6bd2b3b5a271f5cb (diff)
downloadpython-openstackclient-3fc585332f79358489285eabc298e01007599128.tar.gz
volume: Volume names are optional
Who knew? Change-Id: I1c1a811c0db59250e8a20a87f25c2662bc3ab3e8 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'openstackclient/volume')
-rw-r--r--openstackclient/volume/v2/volume.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/openstackclient/volume/v2/volume.py b/openstackclient/volume/v2/volume.py
index 6d14b360..1e1fde92 100644
--- a/openstackclient/volume/v2/volume.py
+++ b/openstackclient/volume/v2/volume.py
@@ -82,10 +82,11 @@ class CreateVolume(command.ShowOne):
_description = _("Create new volume")
def get_parser(self, prog_name):
- parser = super(CreateVolume, self).get_parser(prog_name)
+ parser = super().get_parser(prog_name)
parser.add_argument(
"name",
metavar="<name>",
+ nargs="?",
help=_("Volume name"),
)
parser.add_argument(