neoave / mrack

Multicloud use-case based multihost async provisioner for CIs and testing during development
Apache License 2.0
12 stars 14 forks source link

add_dict_to_node doesn't work if the value of the dict is a list #291

Closed skycastlelily closed 1 week ago

skycastlelily commented 6 months ago

here is the part of req : 'hostRequires': {'and': [{'or': [{'key_value': {'_key': 'NETBOOT_METHOD', '_op': 'like', '_value': 'grub2'}}, {'key_value': {'_key': 'NETBOOT_METHOD', '_op': 'like', '_value': 'efigrub'}}]}, {'not': {'key_value': {'_key': 'BOOTDISK', '_op': 'like', '_value': 'nvme'}}}]}

and here is output

The problem is that add_dict_to_node will do nothing if the value is a list