From 2e63faf257e92eeeb456443fa6ea497595c7c590 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sun, 30 Jun 2013 18:55:03 -0400 Subject: [PATCH] Styling: deprecation --- library/net_infrastructure/arista_lag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/net_infrastructure/arista_lag b/library/net_infrastructure/arista_lag index c96d0dee583..a54f19da2f2 100644 --- a/library/net_infrastructure/arista_lag +++ b/library/net_infrastructure/arista_lag @@ -267,7 +267,7 @@ class AristaLag(object): """ (rc, out, err) = self.run_command("netdev lag list") collection = json.loads(out) - return collection.get('result').has_key(self.interface_id) + return self.interface_id in collection.get('result') def main():