summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Reporting/Storage/DjangoORM.py
diff options
context:
space:
mode:
authorAlexander Sulfrian <asulfrian@zedat.fu-berlin.de>2022-01-30 05:03:51 +0100
committerAlexander Sulfrian <asulfrian@zedat.fu-berlin.de>2022-01-30 05:03:51 +0100
commit44dba9dc7eb82c6c7073ca4a01128ad779ac0f4b (patch)
treebbbad6988088f69214a48a13e237132ee64f6e03 /src/lib/Bcfg2/Reporting/Storage/DjangoORM.py
parentba1a18e060a8614b3dcb41b94a7ad37e89f1dfdf (diff)
parentc11f4f790d710721dcc99f87cfcbafb49e9a4715 (diff)
downloadbcfg2-44dba9dc7eb82c6c7073ca4a01128ad779ac0f4b.tar.gz
bcfg2-44dba9dc7eb82c6c7073ca4a01128ad779ac0f4b.tar.bz2
bcfg2-44dba9dc7eb82c6c7073ca4a01128ad779ac0f4b.zip
Merge branch 'debconf'
Diffstat (limited to 'src/lib/Bcfg2/Reporting/Storage/DjangoORM.py')
-rw-r--r--src/lib/Bcfg2/Reporting/Storage/DjangoORM.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Reporting/Storage/DjangoORM.py b/src/lib/Bcfg2/Reporting/Storage/DjangoORM.py
index a8c8ce243..e0566a51b 100644
--- a/src/lib/Bcfg2/Reporting/Storage/DjangoORM.py
+++ b/src/lib/Bcfg2/Reporting/Storage/DjangoORM.py
@@ -30,7 +30,7 @@ def load_django_models():
FailureEntry, Performance, BaseEntry, ServiceEntry, ActionEntry, \
POSIXGroupEntry, POSIXUserEntry, SEBooleanEntry, SEFcontextEntry, \
SEInterfaceEntry, SELoginEntry, SEModuleEntry, SENodeEntry, \
- SEPermissiveEntry, SEPortEntry, SEUserEntry
+ SEPermissiveEntry, SEPortEntry, SEUserEntry, ConfEntry
# pylint: enable=W0602
from Bcfg2.Reporting.models import \
@@ -39,7 +39,7 @@ def load_django_models():
FailureEntry, Performance, BaseEntry, ServiceEntry, ActionEntry, \
POSIXGroupEntry, POSIXUserEntry, SEBooleanEntry, SEFcontextEntry, \
SEInterfaceEntry, SELoginEntry, SEModuleEntry, SENodeEntry, \
- SEPermissiveEntry, SEPortEntry, SEUserEntry
+ SEPermissiveEntry, SEPortEntry, SEUserEntry, ConfEntry
def get_all_field_names(model):
@@ -127,6 +127,11 @@ class DjangoORM(StorageBase):
defaults=dict(status='check', rc=-1),
mapping=dict(output="rc"))
+ def _import_Conf(self, entry, state):
+ return self._import_default(entry, state,
+ defaults=dict(),
+ mapping=dict())
+
def _import_Package(self, entry, state):
name = entry.get('name')
exists = entry.get('current_exists', default="true").lower() == "true"