mirror of
https://github.com/rancher/os.git
synced 2025-09-21 18:40:27 +00:00
make golang files to pass the latest go lints
- use constructors with named fields - fix logf statements
This commit is contained in:
committed by
Olli Janatuinen
parent
6fd46ddee4
commit
6cde287f87
@@ -92,7 +92,7 @@ func getPseudoRandomGenerator(haAddr []byte) (*rand.Source, error) {
|
||||
func getLinkAddrs(link netlink.Link) ([]netlink.Addr, error) {
|
||||
addrs, err := netlink.AddrList(link, nl.FAMILY_ALL)
|
||||
if err != nil {
|
||||
log.Error("Error fetching existing ip on interface, %s", err)
|
||||
log.Errorf("Error fetching existing ip on interface, %s", err)
|
||||
err = nil // atm, we ignore this, as the link may not have one?
|
||||
}
|
||||
return addrs, err
|
||||
|
Reference in New Issue
Block a user