Skip to content

Commit

Permalink
ztp: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelsoccupied committed Feb 23, 2022
1 parent 30e6580 commit a89107a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ztp/siteconfig-generator/siteConfig/siteConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ type TangConfig struct {
}

type DiskPartition struct {
Device string `yaml:"device"`
Device string `yaml:"device"`
Partitions []Partitions `yaml:"partitions"`
}

Expand All @@ -233,7 +233,7 @@ type Partitions struct {
Size int `yaml:"size"`
Start int `yaml:"start"`
MountFileName string `yaml:"-"`
MountPath string `yaml:"-"`
MountPath string `yaml:"-"`
}

func (prt *Partitions) UnmarshalYAML(unmarshal func(interface{}) error) error {
Expand Down Expand Up @@ -275,7 +275,7 @@ type Nodes struct {
IgnitionConfigOverride string `yaml:"ignitionConfigOverride"`
Role string `yaml:"role"`
CrTemplates map[string]string `yaml:"crTemplates"`
DiskPartition []DiskPartition `yaml:"diskPartition"`
DiskPartition []DiskPartition `yaml:"diskPartition"`
}

// Provide custom YAML unmarshal for Nodes which provides default values
Expand Down

0 comments on commit a89107a

Please sign in to comment.