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