diff options
Diffstat (limited to 'table/policy.go')
-rw-r--r-- | table/policy.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/table/policy.go b/table/policy.go index 6d2af2d4..c870c42e 100644 --- a/table/policy.go +++ b/table/policy.go @@ -3484,9 +3484,10 @@ func (r *RoutingPolicy) ReplacePolicy(x *Policy, refer, preserve bool) (err erro } } + ys := y.Statements err = y.Replace(x) if err == nil && !preserve { - for _, st := range y.Statements { + for _, st := range ys { if !r.statementInUse(st) { log.WithFields(log.Fields{ "Topic": "Policy", |