diff --git a/net_infrastructure/arista_lag b/net_infrastructure/arista_lag index c96d0dee583..a54f19da2f2 100644 --- a/net_infrastructure/arista_lag +++ b/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():