Remove bad casting to int in string compare

This commit is contained in:
Joshua Boniface 2023-01-01 13:55:10 -05:00
parent a49510ecc8
commit e945fd8590
1 changed files with 1 additions and 1 deletions

View File

@ -580,7 +580,7 @@ def delete_template_network_element(name, vni):
networks, code = list_template_network_vnis(name) networks, code = list_template_network_vnis(name)
found_vni = False found_vni = False
for network in networks: for network in networks:
if network["vni"] == int(vni): if network["vni"] == vni:
found_vni = True found_vni = True
if not found_vni: if not found_vni:
retmsg = { retmsg = {