diff --git a/sa/profiles/HP/ProCurve/get_interfaces.py b/sa/profiles/HP/ProCurve/get_interfaces.py index 519a89b0adcae82c74de1be3439e1192da4f8865..d7b564ffd4189e15bf3feffce34834daf566492b 100644 --- a/sa/profiles/HP/ProCurve/get_interfaces.py +++ b/sa/profiles/HP/ProCurve/get_interfaces.py @@ -71,7 +71,7 @@ class Script(BaseScript): ) i = 0 - for s in range(len(lines) / step): + for s in range(int(len(lines) / step)): for str in lines[i : i + step]: leaf = str.split(".")[0] val = str.split("=")[1].lstrip() diff --git a/sa/profiles/HP/ProCurve/get_switchport.py b/sa/profiles/HP/ProCurve/get_switchport.py index 5899e4b3359d3a593635575a3674cda0b2f3ab7f..4510f0dc04f1322dfe20799d64c17800be070ae7 100644 --- a/sa/profiles/HP/ProCurve/get_switchport.py +++ b/sa/profiles/HP/ProCurve/get_switchport.py @@ -64,7 +64,7 @@ class Script(BaseScript): portchannels[p["interface"]] = p["members"] i = 0 - for s in range(len(lines) / step): + for s in range(int(len(lines) / step)): if i == portsnum * step: break