From 0328dea7111473f929c80f810e48d923c89ee522 Mon Sep 17 00:00:00 2001 From: asarfaty Date: Sun, 22 Dec 2019 14:29:50 +0200 Subject: [PATCH] NSX|V: Fix get_edges for python3 This api is only used by the admin utilities Change-Id: Ib362a1bb8208526015f4b82043db0d7262dcddc4 --- vmware_nsx/plugins/nsx_v/vshield/vcns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmware_nsx/plugins/nsx_v/vshield/vcns.py b/vmware_nsx/plugins/nsx_v/vshield/vcns.py index 207d875191..bd356d55b1 100644 --- a/vmware_nsx/plugins/nsx_v/vshield/vcns.py +++ b/vmware_nsx/plugins/nsx_v/vshield/vcns.py @@ -258,7 +258,7 @@ class Vcns(object): count = int(paging_info['totalCount']) LOG.debug("There are total %s edges and page size is %s", count, page_size) - pages = count / page_size + 1 + pages = int(count / page_size + 1) for i in range(1, pages): start_index = page_size * i h, d = self._get_edges(start_index)