diff options
| author | ShogoAdachi <sho-adachi@xc.jp.nec.com> | 2017-09-07 19:10:24 +0900 |
|---|---|---|
| committer | Dean Troyer <dtroyer@gmail.com> | 2017-10-20 19:48:37 +0000 |
| commit | 4464109c7754a9287f75ec2af84398700d1450e6 (patch) | |
| tree | b82fe5816ae426b8a4c52e2aa1b1141b8a4d70b2 /releasenotes | |
| parent | de2af66c1622115dcb28aca88aa62ce5b177c771 (diff) | |
| download | python-openstackclient-4464109c7754a9287f75ec2af84398700d1450e6.tar.gz | |
Accept 0 for --min-disk and --min-ram
The current openstackclient implementation cannot accept 0
for --min-disk and --min-ram with the "openstack image set" command.
If theses options get set to 0, the option parser in openstackclient
wrongly interprets 0 as no option value. The 0 is valid for these
options if administrators want to make it the default(no minimum
requirements).
This patch fix the parser so that it avoids only 'None'.
Change-Id: Ie8ee37484c02c26f54adc56263fcd167c0ce7eb3
Closes-bug: #1719499
Diffstat (limited to 'releasenotes')
| -rw-r--r-- | releasenotes/notes/bug-1719499-d67d80b0da0bc30a.yaml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/releasenotes/notes/bug-1719499-d67d80b0da0bc30a.yaml b/releasenotes/notes/bug-1719499-d67d80b0da0bc30a.yaml new file mode 100644 index 00000000..37fbdc55 --- /dev/null +++ b/releasenotes/notes/bug-1719499-d67d80b0da0bc30a.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Accept ``0`` as a valid value in the ``image set`` ``--min-disk`` and ``--min-ram`` options. + .. _bug 1719499: https://bugs.launchpad.net/python-openstackclient/+bug/1719499 |
