(src aghconfig.AutomationConfig)
| 113 | } |
| 114 | |
| 115 | func cloneAutomationConfig(src aghconfig.AutomationConfig) aghconfig.AutomationConfig { |
| 116 | cloned := src |
| 117 | cloned.Jobs = cloneAutomationJobs(src.Jobs) |
| 118 | cloned.Triggers = cloneAutomationTriggers(src.Triggers) |
| 119 | return cloned |
| 120 | } |
| 121 | |
| 122 | func cloneAutomationJobs(src []aghconfig.AutomationJob) []aghconfig.AutomationJob { |
| 123 | if len(src) == 0 { |
no test coverage detected