Explorar el Código

Merge pull request #24 from eyakubovich/master

bug fix: propogate err on updateSubnet failure
Eugene Yakubovich hace 10 años
padre
commit
b3e0eae054
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      subnet/subnet.go

+ 1 - 1
subnet/subnet.go

@@ -84,7 +84,7 @@ func (sm *SubnetManager) AcquireLease(tep ip.IP4, data string) (ip.IP4Net, error
 				if tep == ba.PublicIP {
 					resp, err := sm.registry.updateSubnet(l.Network.StringSep(".", "-"), data, subnetTTL)
 					if err != nil {
-						return ip.IP4Net{}, nil
+						return ip.IP4Net{}, err
 					}
 
 					sm.myLease.Network = l.Network