feat: disabled switch for backups

This commit is contained in:
2023-11-12 06:37:39 +00:00
parent 4e84e79e7e
commit c136721137

View File

@@ -20,6 +20,9 @@ def createBackupScriptStructure(backupList, baseDomain="", icingaOnly=False):
asyncIcingaConf = {}
for backup in backupList:
if backup.get("disabled"):
continue
hostnameBase = backup["hostname"]
if baseDomain:
hostname = "{}.{}".format(hostnameBase, baseDomain.lstrip("."))