pep8: deprecation
This commit is contained in:
parent
899ea4de82
commit
4827d1451e
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ class AristaL2Interface(object):
|
|||
"""
|
||||
(rc, out, err) = self.run_command("netdev l2interface list")
|
||||
collection = json.loads(out)
|
||||
return collection.get('result').has_key(self.interface_id)
|
||||
return self.interface_id in collection.get('result')
|
||||
|
||||
|
||||
def main():
|
||||
|
|
Loading…
Reference in a new issue