Make linter happy ...
This commit is contained in:
parent
dc195d0d21
commit
128b135d5c
|
@ -61,14 +61,14 @@ func (o *OrionService) OwrtListWifiInterfaces(r *http.Request, args *ListIfaceAr
|
||||||
|
|
||||||
// CreateIfaceArgs argument structure for exported method OwrtCreateWifiInterface
|
// CreateIfaceArgs argument structure for exported method OwrtCreateWifiInterface
|
||||||
type CreateIfaceArgs struct {
|
type CreateIfaceArgs struct {
|
||||||
Iface *openwrt.UCIWirelessInterface
|
|
||||||
Cleanup bool
|
Cleanup bool
|
||||||
|
Iface *openwrt.UCIWirelessInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateIfaceResponse argument structure for exported method OwrtCreateWifiInterface
|
// CreateIfaceResponse argument structure for exported method OwrtCreateWifiInterface
|
||||||
type CreateIfaceResponse struct {
|
type CreateIfaceResponse struct {
|
||||||
Iface *openwrt.UCIWirelessInterface
|
|
||||||
Errors []*openwrt.Action
|
Errors []*openwrt.Action
|
||||||
|
Iface *openwrt.UCIWirelessInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
// OwrtCreateWifiInterface Create a WifiInterface in openwrt
|
// OwrtCreateWifiInterface Create a WifiInterface in openwrt
|
||||||
|
@ -303,7 +303,7 @@ func (o *OrionService) setupMasterWifi(rqContext context.Context, box *OrionBox,
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// updateAndReboot connects to the box with the New adress and run basic tests on version dans updates
|
// updateAndReboot connects to the box with the New address and run basic tests on version dans updates
|
||||||
func (o *OrionService) updateAndReboot(rqContext context.Context, box *OrionBox, server *OrionServer, reply *UpdateOrionBoxResponse) error {
|
func (o *OrionService) updateAndReboot(rqContext context.Context, box *OrionBox, server *OrionServer, reply *UpdateOrionBoxResponse) error {
|
||||||
time.Sleep(3 * time.Second)
|
time.Sleep(3 * time.Second)
|
||||||
boxCli, err := o.connectUpdater(rqContext, box)
|
boxCli, err := o.connectUpdater(rqContext, box)
|
||||||
|
@ -366,7 +366,7 @@ func (o *OrionService) UpdateOrionBox(r *http.Request,
|
||||||
// if err := o.setupMasterWifi(r.Context(), args.Box, args.Server); err != nil {
|
// if err := o.setupMasterWifi(r.Context(), args.Box, args.Server); err != nil {
|
||||||
// return err
|
// return err
|
||||||
// }
|
// }
|
||||||
o.setupMasterWifi(r.Context(), args.Box, args.Server)
|
_ = o.setupMasterWifi(r.Context(), args.Box, args.Server)
|
||||||
return o.updateAndReboot(r.Context(), args.Box, args.Server, reply)
|
return o.updateAndReboot(r.Context(), args.Box, args.Server, reply)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue