forked from shaba/openuds
added "strip" to IP list
This commit is contained in:
parent
bd28300324
commit
ab84330c7b
@ -94,7 +94,7 @@ class IPMachinesService(IPServiceBase):
|
||||
if values.get('ipList', None) is None:
|
||||
self._ips = []
|
||||
else:
|
||||
self._ips = list('{}~{}'.format(ip, i) for i, ip in enumerate(values['ipList'])) # Allow duplicates right now
|
||||
self._ips = list('{}~{}'.format(str(ip).strip(), i) for i, ip in enumerate(values['ipList'])) # Allow duplicates right now
|
||||
# self._ips.sort()
|
||||
|
||||
self._token = self.token.value.strip()
|
||||
|
Loading…
x
Reference in New Issue
Block a user