Browse Source

zones: Env: drop unused ZONE{zoneID}_IP

Signed-off-by: Alejandro Mery <amery@jpi.io>
pull/4/head
Alejandro Mery 1 year ago
parent
commit
af2d836000
  1. 5
      pkg/zones/env.go

5
pkg/zones/env.go

@ -48,11 +48,6 @@ func (m *Env) writeEnvZone(w io.Writer, z *Zone) {
gatewayID := getRingZeroGatewayID(z)
if gatewayID > 0 {
m.writeEnvVar(w, fmt.Sprintf("%v", gatewayID), "ZONE%v_%s", zoneID, "GW")
// ZONE{zoneID}_IP
if ip, ok := RingZeroAddress(zoneID, gatewayID); ok {
m.writeEnvVar(w, ip.String(), "ZONE%v_%s", zoneID, "IP")
}
}
}

Loading…
Cancel
Save