ironic/ironic/api
Steve Baker a1c5559fae Handle patching node /protected value with None
Calling baremetal node unset --protected will attempt to set the
protected attribute to None, which raises a 500 error because the
object attribute is not nullable[1]. This change checks for this case
in the patch call and sets protected to False.

This appears to be the only boolean attribute affected by this issue
(node, port, and portgroup boolean attributes were checked).

[1] https://opendev.org/openstack/ironic/src/branch/master/ironic/objects/node.py#L146

Change-Id: I561e059218a99154e77df075aeadd68f56b86267
Story: 2008205
Task: 40989
2020-09-29 13:55:36 +02:00
..
controllers Handle patching node /protected value with None 2020-09-29 13:55:36 +02:00
middleware Encapsulate auth_token middleware 2020-05-15 09:49:54 +12:00
__init__.py Abstract away pecan.request/response 2019-07-16 17:47:13 +02:00
app.py Enable Basic HTTP authentication middleware 2020-06-05 01:15:08 +12:00
args.py Remove File type 2020-07-20 08:58:32 +12:00
config.py Fix W504 errors 2018-05-09 06:11:30 -07:00
expose.py Rename Response to PassthruResponse 2020-07-20 14:09:53 +12:00
functions.py Use getfullargspec to inspect functions 2020-07-01 17:25:09 +02:00
hooks.py Enable Basic HTTP authentication middleware 2020-06-05 01:15:08 +12:00
method.py Convert root path / to use plain JSON 2020-07-20 14:09:53 +12:00
types.py Rename Response to PassthruResponse 2020-07-20 14:09:53 +12:00
wsgi.py Make oslo.i18n an optional dependency 2020-04-02 14:10:21 +02:00