From 203893559e588b76aca650ebda459bddc58d4af7 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 9 Oct 2021 19:03:31 -0400 Subject: [PATCH] Use correct isinstance instead of type --- node-daemon/pvcnoded/objects/VXNetworkInstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node-daemon/pvcnoded/objects/VXNetworkInstance.py b/node-daemon/pvcnoded/objects/VXNetworkInstance.py index 1391a85d..5add3727 100644 --- a/node-daemon/pvcnoded/objects/VXNetworkInstance.py +++ b/node-daemon/pvcnoded/objects/VXNetworkInstance.py @@ -447,7 +447,7 @@ add rule inet filter forward ip6 saddr {netaddr6} counter jump {vxlannic}-out update_mtu = True # Set MTU to an integer (if it's not) - if not type(self.vx_mtu, int): + if not isinstance(self.vx_mtu, int): self.vx_mtu = int(self.vx_mtu) # Ensure the MTU is valid