Skip to content

Commit

Permalink
Panorama: ConfigureRules should not suppress err while deleting rules (
Browse files Browse the repository at this point in the history
  • Loading branch information
Piyush Pangtey authored Sep 22, 2022
1 parent 50e1226 commit e9c2b5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion poli/security/pano.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ func (c *Panorama) ConfigureRules(dg, base string, rules []Entry, auditComments
}

if len(rmList) != 0 {
_ = c.Delete(dg, base, rmList...)
if err := c.Delete(dg, base, rmList...); err != nil {
return err
}
}
}

Expand Down

0 comments on commit e9c2b5c

Please sign in to comment.