mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-06 05:41:35 +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"]
|
||||
icingaToken = backup["token"]
|
||||
|
||||
if not hostname.replace(".","").isalnum():
|
||||
if not hostname.replace(".","").replace("-","").isalnum():
|
||||
print("Warning: Backup hostname is not alphanum: '{}'".format(hostname))
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user