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."""
|
||||
ifname, iface = get_by_name(yaml, ifname)
|
||||
try:
|
||||
if iface["mpls"] == True:
|
||||
if iface["mpls"]:
|
||||
return True
|
||||
except:
|
||||
pass
|
||||
|
@ -154,7 +154,7 @@ def is_mpls(yaml, ifname):
|
||||
"""Returns True if the loopback exists and has mpls enabled. Returns false otherwise."""
|
||||
ifname, iface = get_by_name(yaml, ifname)
|
||||
try:
|
||||
if iface["mpls"] == True:
|
||||
if iface["mpls"]:
|
||||
return True
|
||||
except:
|
||||
pass
|
||||
|
Reference in New Issue
Block a user