when transforming a NodeInfo struct to a NodeConf (set the NodeConf from the NodeInfo) nested structures were seperately handled. This means a there were seperate handles for e.g *Netdevs and *IpmiConfig. The new getter traverses through the datastucture and sets the right value for a Entry struct, but calls itself again if a Pointer is detected. This adds the posiblity to add new nested structures to NodeConf and NodeInfo without the need of seperately handling them in the transformer functions. Signed-off-by: Christian Goll <cgoll@suse.de>
3.6 KiB
3.6 KiB