Commit c7eb68e0 by Michael DeHaan

Styling: deprecation

parent 4827d145
......@@ -228,7 +228,7 @@ class AristaVlan(object):
"""
(rc, out, err) = self.run_command("netdev vlan list")
collection = json.loads(out)
return collection.get('result').has_key(str(self.vlan_id))
return str(self.vlan_id) in collection.get('result')
def get(self):
""" This method will return a dictionary with the attributes of the
......
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