HostMetric compliance computation

This commit is contained in:
Martin Slemr
2023-02-10 10:29:28 +01:00
committed by John Westcott IV
parent b18ad77035
commit 05f918e666
3 changed files with 11 additions and 3 deletions

View File

@@ -79,6 +79,11 @@ class HostManager(models.Manager):
return qs
class HostMetricActiveManager(models.Manager):
def get_queryset(self):
return super().get_queryset().filter(deleted=False)
def get_ig_ig_mapping(ig_instance_mapping, instance_ig_mapping):
# Create IG mapping by union of all groups their instances are members of
ig_ig_mapping = {}