in lib/ec2macosinit/module.go [55:77]
func (m *Module) validateModule() (err error) {
// Check that there is exactly one Run type set
var runs int8
if m.RunOnce {
runs++
}
if m.RunPerBoot {
runs++
}
if m.RunPerInstance {
runs++
}
if runs != 1 {
return fmt.Errorf("ec2macosinit: incorrect number of run types\n")
}
// Check that Priority is set and not 0 or negative (must be 1 or greater)
if m.PriorityGroup < 1 {
return fmt.Errorf("ec2macosinit: module priority is unset or less than 1\n")
}
return nil
}