mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2026-01-21 21:47:37 +01:00
fix: allow dash in hostname
This commit is contained in:
@@ -29,7 +29,7 @@ def createBackupScriptStructure(backupList, baseDomain="", icingaOnly=False):
|
|||||||
paths = backup["paths"]
|
paths = backup["paths"]
|
||||||
icingaToken = backup["token"]
|
icingaToken = backup["token"]
|
||||||
|
|
||||||
if not hostname.replace(".","").isalnum():
|
if not hostname.replace(".","").replace("-","").isalnum():
|
||||||
print("Warning: Backup hostname is not alphanum: '{}'".format(hostname))
|
print("Warning: Backup hostname is not alphanum: '{}'".format(hostname))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user