From 4827d1451e311d811507d77013ec606c4beafa8b Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sun, 30 Jun 2013 18:51:47 -0400 Subject: [PATCH] pep8: deprecation --- library/net_infrastructure/arista_l2interface | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/net_infrastructure/arista_l2interface b/library/net_infrastructure/arista_l2interface index fa33aff3bc2..1f36925c485 100644 --- a/library/net_infrastructure/arista_l2interface +++ b/library/net_infrastructure/arista_l2interface @@ -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():