From f03b14699a2cbf5576bc01cf1461d9fdce070b14 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 3 Jun 2020 16:01:38 +0500 Subject: [PATCH] HP.ProCurve. Cleanup py3. --- sa/profiles/HP/ProCurve/get_interfaces.py | 2 +- sa/profiles/HP/ProCurve/get_switchport.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sa/profiles/HP/ProCurve/get_interfaces.py b/sa/profiles/HP/ProCurve/get_interfaces.py index 519a89b0ad..d7b564ffd4 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 5899e4b335..4510f0dc04 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 -- GitLab