diff --git a/library/net_infrastructure/arista_lag b/library/net_infrastructure/arista_lag index c96d0dee58..a54f19da2f 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():