#482 Fix exception when gating.yaml is not found
Merged 4 years ago by gnaponie. Opened 4 years ago by lholecek.
lholecek/greenwave fix-none-sub-policies  into  master

file modified
+3
@@ -468,6 +468,9 @@ 

              logging.exception(

                  'Failed to retrieve policies for %r', subject_identifier)

  

+         if sub_policies is None:

+             return False

+ 

          return any(sub_policy.matches(**attributes) for sub_policy in sub_policies)

  

      def to_json(self):

Pull-Request has been merged by gnaponie

4 years ago
Metadata