Merge "Netmask needs corersion to string"

This commit is contained in:
Jenkins 2016-06-16 06:41:08 +00:00 committed by Gerrit Code Review
commit 6a5f17ee00

View File

@ -590,7 +590,7 @@ class DateraDriver(san.SanISCSIDriver):
if not adata.get('start_ip'): if not adata.get('start_ip'):
continue continue
pool_if = ipaddress.ip_interface( pool_if = ipaddress.ip_interface(
"/".join((adata['start_ip'], adata['netmask']))) "/".join((adata['start_ip'], str(adata['netmask']))))
if ip_obj in pool_if.network: if ip_obj in pool_if.network:
pool = ip_pool pool = ip_pool
return self._issue_api_request( return self._issue_api_request(