Fix ArgumentError when upserting security policies
What does this MR do and why?
This MR fixes ArgumentError exception when a security policy is upserted with rules in policy when the policy does not support/have policy_rules rows(Security::PolicyRule).
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.