flows/exporter: remove dead code since no stage is PolicyBindingModel

This commit is contained in:
Jens Langhammer 2020-12-13 18:25:30 +01:00
parent 17732eea08
commit 1c0a6efeb1
1 changed files with 0 additions and 5 deletions

View File

@ -31,11 +31,6 @@ class FlowExporter:
def _prepare_pbm(self):
self.pbm_uuids = [self.flow.pbm_uuid]
for stage_subclass in Stage.__subclasses__():
if issubclass(stage_subclass, PolicyBindingModel):
self.pbm_uuids += stage_subclass.objects.filter(
flow=self.flow
).values_list("pbm_uuid", flat=True)
self.pbm_uuids += FlowStageBinding.objects.filter(target=self.flow).values_list(
"pbm_uuid", flat=True
)