Misleading error message if value is 0

Bug #1722777 reported by George Shuklin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
New
Undecided
M V P Nitesh

Bug Description

If one tries to add incorrect attribute to cluster or cluster-template, and value for that attribute is 0, magnum reports misleading error.

Example:

good:
magnum cluster-template-update be3bbdf1-b4ca-4d37-ae85-96c820f9072c add foo=1
ERROR: Adding a new attribute /foo to the root of the resource is not allowed (HTTP 400) (Request-ID: req-159592dd-9893-49a0-833f-cce548d77361)

bad:
magnum cluster-template-update be3bbdf1-b4ca-4d37-ae85-96c820f9072c add foo=0
ERROR: 'add' and 'replace' operations needs value (HTTP 400) (Request-ID: req-065bacef-f7b4-414c-ae35-c98de62361d4)

tested on stable/pike and current head.

summary: - Misleading error message is value is 0
+ Misleading error message if value is 0
M V P Nitesh (m-nitesh)
Changed in magnum:
assignee: nobody → M V P Nitesh (m-nitesh)
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.