Skip to content

Commit

Permalink
Fix failing redis test for new default behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
TimPansino committed Mar 29, 2023
1 parent fbb851e commit c1d8189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion newrelic/hooks/datastore_redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def _conn_attrs_to_dict(connection):

def _instance_info(kwargs):
host = kwargs.get("host") or "localhost"
port_path_or_id = str(kwargs.get("port") or kwargs.get("path", "unknown"))
port_path_or_id = str(kwargs.get("path") or kwargs.get("port", "unknown"))
db = str(kwargs.get("db") or 0)

return (host, port_path_or_id, db)
Expand Down

0 comments on commit c1d8189

Please sign in to comment.