mirror of
https://github.com/dkmstr/openuds.git
synced 2025-08-24 09:49:52 +03:00
Fixed WOL for multi manual assigment
This commit is contained in:
@ -130,7 +130,7 @@ class IPMachinesService(IPServiceBase):
|
|||||||
else:
|
else:
|
||||||
# Check that ips are valid
|
# Check that ips are valid
|
||||||
for v in values['ipList']:
|
for v in values['ipList']:
|
||||||
if not net.isValidHost(v):
|
if not net.isValidHost(v.split(';')[0]): # Get only IP/hostname
|
||||||
raise IPServiceBase.ValidationException(gettext('Invalid value detected on servers list: "{}"').format(v))
|
raise IPServiceBase.ValidationException(gettext('Invalid value detected on servers list: "{}"').format(v))
|
||||||
self._ips = [
|
self._ips = [
|
||||||
'{}~{}'.format(str(ip).strip(), i)
|
'{}~{}'.format(str(ip).strip(), i)
|
||||||
|
Reference in New Issue
Block a user