From c7eb68e0437b93a98dffd3433df9c3258613827b Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sun, 30 Jun 2013 18:52:17 -0400 Subject: [PATCH] Styling: deprecation --- library/net_infrastructure/arista_vlan | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/net_infrastructure/arista_vlan b/library/net_infrastructure/arista_vlan index 14d429a0af1..a9a1627f41e 100644 --- a/library/net_infrastructure/arista_vlan +++ b/library/net_infrastructure/arista_vlan @@ -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