added "strip" to IP list

This commit is contained in:
Adolfo Gómez García 2020-04-28 15:57:36 +02:00
parent bd28300324
commit ab84330c7b

View File

@ -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()