From e945fd859030e7f06b297c5407ff5913adc1489d Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 1 Jan 2023 13:55:10 -0500 Subject: [PATCH] Remove bad casting to int in string compare --- api-daemon/pvcapid/provisioner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-daemon/pvcapid/provisioner.py b/api-daemon/pvcapid/provisioner.py index 5070b40a..ad3603fc 100755 --- a/api-daemon/pvcapid/provisioner.py +++ b/api-daemon/pvcapid/provisioner.py @@ -580,7 +580,7 @@ def delete_template_network_element(name, vni): networks, code = list_template_network_vnis(name) found_vni = False for network in networks: - if network["vni"] == int(vni): + if network["vni"] == vni: found_vni = True if not found_vni: retmsg = {