func()

in lib/ec2macosinit/module.go [116:129]


func (m *Module) generateHistoryKey() (key string) {
	// Generate key
	var runType string
	if m.RunOnce {
		runType = "RunOnce"
	}
	if m.RunPerInstance {
		runType = "RunPerInstance"
	}
	if m.RunPerBoot {
		runType = "RunPerBoot"
	}
	return strconv.Itoa(m.PriorityGroup) + "_" + runType + "_" + m.Type + "_" + m.Name
}