diff --git a/overlord/configstate/configcore/refresh.go b/overlord/configstate/configcore/refresh.go index cb2af0ee1d4e..037b3a7b1893 100644 --- a/overlord/configstate/configcore/refresh.go +++ b/overlord/configstate/configcore/refresh.go @@ -46,10 +46,10 @@ func init() { } func reportOrIgnoreInvalidManageRefreshes(tr RunTransaction, optName string) error { - // check if the option is set as part of transaction changes; if not than - // it's already set in the config state and we shouldn't error out about it - // now. refreshScheduleManaged will do the right thing when refresh cannot - // be managed anymore. + // check if the option is set as part of transaction changes; if not + // than it's already set in the config state and we shouldn't error out + // about it now since the required conditions were met at the time it + // got set for _, k := range tr.Changes() { if k == "core."+optName { return fmt.Errorf("cannot set schedule to managed")