File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ func (c *HAProxyController) globalCfg() {
4747 var newGlobal , global * models.Global
4848 var newLg models.LogTargets
4949 var err error
50- var updated []string
5150 global , err = c .haproxy .GlobalGetConfiguration ()
5251 if err != nil {
5352 logger .Error (err )
@@ -91,13 +90,12 @@ func (c *HAProxyController) globalCfg() {
9190 diff := newGlobal .Diff (* global )
9291 if len (diff ) != 0 {
9392 logger .Error (c .haproxy .GlobalPushConfiguration (* newGlobal ))
94- instance .Restart ("Global config updated: %s " , strings . Join ( updated , " \n " ) )
93+ instance .Restart ("Global config updated: %v " , diff )
9594 }
9695 diff = newLg .Diff (lg )
97- // updated = deep.Equal(newLg, lg)
9896 if len (diff ) != 0 {
9997 logger .Error (c .haproxy .GlobalPushLogTargets (newLg ))
100- instance .Restart ("Global log targets updated: %s " , strings . Join ( updated , " \n " ) )
98+ instance .Restart ("Global log targets updated: %v " , diff )
10199 }
102100 c .globalCfgSnipp ()
103101}
You can’t perform that action at this time.
0 commit comments