172 }
173
174 switch ne, ok := err.(net.Error); {
175 case ok && ne.Temporary():176 continue
177 case errors.Is(err, net.ErrClosed):
178 err = errShutdown
768 s := &machineConf.Services[idx]
769 // Use the chance to port the deprecated field
770 if machineConf.DisableMachineAutostart != nil {
771 s.Autostart = fly.Pointer(!(*machineConf.DisableMachineAutostart))772 machineConf.DisableMachineAutostart = nil
773 }
774
767 for idx := range machineConf.Services {
768 s := &machineConf.Services[idx]
769 // Use the chance to port the deprecated field
770 if machineConf.DisableMachineAutostart != nil {771 s.Autostart = fly.Pointer(!(*machineConf.DisableMachineAutostart))
772 machineConf.DisableMachineAutostart = nil
773 }
769 // Use the chance to port the deprecated field
770 if machineConf.DisableMachineAutostart != nil {
771 s.Autostart = fly.Pointer(!(*machineConf.DisableMachineAutostart))
772 machineConf.DisableMachineAutostart = nil773 }
774
775 if flag.IsSpecified(ctx, "autostop") {
213
214 build.ImageBuildStart()
215 terminal.Debug("fetching docker server info")
216 serverInfo, err := func() (types.Info, error) {217 infoCtx, cancel := context.WithTimeout(ctx, 10*time.Second)
218 defer cancel()
219 return docker.Info(infoCtx)
Sometimes a function, variable, constant, field, or whole package becomes redundant or unnecessary but must be kept for compatibility with existing programs. These should not be used except for compatibility with legacy systems.