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

@ -188,7 +188,7 @@ func (n *NGINXController) syncIngress(interface{}) error {
// it takes time for Nginx to start listening on the port
time.Sleep(1 * time.Second)
}
err := n.ConfigureDynamically(&pcfg)
err := configureDynamically(&pcfg, n.cfg.ListenPorts.Status)
if err == nil {
glog.Infof("dynamic reconfiguration succeeded")
} else {