Enforcement reports with asset context; contract 0.17.0
This commit is contained in:
@@ -1014,10 +1014,7 @@ def _attach_display_roles(facts, hostnames):
|
||||
|
||||
ShopDB's mirror of the display-type.txt each kiosk reads at startup.
|
||||
"""
|
||||
try:
|
||||
from shopdb.core.models.dashboarddefault import DashboardDefault
|
||||
except ImportError:
|
||||
return
|
||||
from shopdb.api import DashboardDefault
|
||||
lowered = {name.lower() for name in hostnames}
|
||||
for default in DashboardDefault.query.filter_by(isactive=True).all():
|
||||
host = (default.fqdn or '').split('.')[0].lower()
|
||||
|
||||
Reference in New Issue
Block a user