Commit 4827d145 by Michael DeHaan

pep8: deprecation

parent 899ea4de
...@@ -278,7 +278,7 @@ class AristaL2Interface(object): ...@@ -278,7 +278,7 @@ class AristaL2Interface(object):
""" """
(rc, out, err) = self.run_command("netdev l2interface list") (rc, out, err) = self.run_command("netdev l2interface list")
collection = json.loads(out) collection = json.loads(out)
return collection.get('result').has_key(self.interface_id) return self.interface_id in collection.get('result')
def main(): def main():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment