Remove ExportedYml

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2024-11-03 01:04:15 -06:00
parent 1acbfc1ffa
commit a2c778b7ee
6 changed files with 34 additions and 78 deletions

View File

@@ -13,10 +13,10 @@ Calculate the hash of NodeYaml in an orderder fashion
*/
func (config *NodeYaml) Hash() [32]byte {
// flatten out profiles and nodes
for _, val := range config.nodeProfiles {
for _, val := range config.NodeProfiles {
val.Flatten()
}
for _, val := range config.nodes {
for _, val := range config.Nodes {
val.Flatten()
}
data, err := yaml.Marshal(config)