Fix on-creation ability

On node creation, the underlying code does a validate of the fields
passed, and errors if you try to pass excess fields which are not in
a super easy to miss list, because actual OSC testing doesn't fully
exercise the entire command execution.

Change-Id: Iae35f80c1ae547044dea615a4309b6810ea8fee9
This commit is contained in:
Julia Kreger 2024-02-08 15:27:25 -08:00
parent b319505e2f
commit ff17b5478d
2 changed files with 10 additions and 3 deletions

View File

@ -52,9 +52,10 @@ class NodeManager(base.CreateManager):
'network_interface', 'power_interface',
'raid_interface', 'rescue_interface',
'storage_interface', 'vendor_interface',
'resource_class', 'conductor_group',
'automated_clean', 'network_data',
'parent_node']
'firmware_interface', 'resource_class',
'conductor_group', 'automated_clean',
'network_data', 'parent_node',
'owner', 'lessee', 'shard', 'description']
_resource_name = 'nodes'
def list(self, associated=None, maintenance=None, marker=None,

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Fixes the list of fields permitted when creating a node. The following
fields can now be set: firmware_interface, automated_clean, network_data,
parent_node, owner, lessee, shard, desription.