lint: fix singleton-comparison
This commit is contained in:
@ -791,7 +791,7 @@ def is_mpls(yaml, ifname):
|
|||||||
"""Returns True if the interface exists and has mpls enabled. Returns false otherwise."""
|
"""Returns True if the interface exists and has mpls enabled. Returns false otherwise."""
|
||||||
ifname, iface = get_by_name(yaml, ifname)
|
ifname, iface = get_by_name(yaml, ifname)
|
||||||
try:
|
try:
|
||||||
if iface["mpls"] == True:
|
if iface["mpls"]:
|
||||||
return True
|
return True
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
@ -154,7 +154,7 @@ def is_mpls(yaml, ifname):
|
|||||||
"""Returns True if the loopback exists and has mpls enabled. Returns false otherwise."""
|
"""Returns True if the loopback exists and has mpls enabled. Returns false otherwise."""
|
||||||
ifname, iface = get_by_name(yaml, ifname)
|
ifname, iface = get_by_name(yaml, ifname)
|
||||||
try:
|
try:
|
||||||
if iface["mpls"] == True:
|
if iface["mpls"]:
|
||||||
return True
|
return True
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
Reference in New Issue
Block a user