mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-06 13:51:35 +01:00
feat: disabled switch for backups
This commit is contained in:
@@ -20,6 +20,9 @@ def createBackupScriptStructure(backupList, baseDomain="", icingaOnly=False):
|
|||||||
asyncIcingaConf = {}
|
asyncIcingaConf = {}
|
||||||
for backup in backupList:
|
for backup in backupList:
|
||||||
|
|
||||||
|
if backup.get("disabled"):
|
||||||
|
continue
|
||||||
|
|
||||||
hostnameBase = backup["hostname"]
|
hostnameBase = backup["hostname"]
|
||||||
if baseDomain:
|
if baseDomain:
|
||||||
hostname = "{}.{}".format(hostnameBase, baseDomain.lstrip("."))
|
hostname = "{}.{}".format(hostnameBase, baseDomain.lstrip("."))
|
||||||
|
|||||||
Reference in New Issue
Block a user