Clean JSON before post request to update configuration

This commit is contained in:
Manuel de Brito Fontes 2018-04-24 15:02:52 -03:00
parent bad526bd54
commit c6728aa8fa
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
6 changed files with 123 additions and 13 deletions

View file

@ -99,7 +99,6 @@ func getEndpoints(
targetPort = epPort.Port
}
glog.Infof("TP: %v", targetPort)
// check for invalid port value
if targetPort <= 0 {
continue