optional argument value error

Bug #1844488 reported by liushuai
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Karbor
Fix Released
Undecided
liushuai

Bug Description

[root@controller ~]# karbor help quota-class-update
usage: karbor quota-class-update [--plans <plans>] <class_name>

Update the quotas for a quota class (Admin only).

Positional arguments:
  <class_name> Name of quota class to set the quotas for.

Optional arguments:
  --plans <plans> New value for the "plans" quota.
[root@controller ~]#
[root@controller ~]#
[root@controller ~]#
[root@controller ~]# karbor quota-class-update test
Invalid input for field/attribute plans. Value: None. None is not of type 'boolean', 'string', 'integer' (HTTP 400) (Request-ID: req-626f9178-29be-4f6f-ad6d-f318b6897590)

liushuai (liushuai503)
Changed in karbor:
assignee: nobody → liushuai (liushuai503)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-karborclient (master)

Fix proposed to branch: master
Review: https://review.opendev.org/682826

Changed in karbor:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-karborclient (master)

Reviewed: https://review.opendev.org/682826
Committed: https://git.openstack.org/cgit/openstack/python-karborclient/commit/?id=05139e97e8eb57b7bcd6bdac6fd2a69a35bea031
Submitter: Zuul
Branch: master

commit 05139e97e8eb57b7bcd6bdac6fd2a69a35bea031
Author: liushuai <email address hidden>
Date: Wed Sep 18 16:09:45 2019 +0800

    optional argument should have default values

    Change-Id: I5ff5447f8ceec0a8ff25d46208a59eb2d6c8e307
    Closes-Bug: #1844488

Changed in karbor:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-karborclient 1.4.0

This issue was fixed in the openstack/python-karborclient 1.4.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.