Use connection.tenant instead of connection.get_tenant() which is deprecated