Skip to content

Commit

Permalink
use socket gethostname for unique id
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewPocock committed Apr 20, 2024
1 parent 54d03dd commit ed6cda0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbt/adapters/sqlite/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
from contextlib import contextmanager
from dataclasses import dataclass, field
import glob
import json
import os.path
import sqlite3
from socket import gethostname
from typing import Optional, Tuple, Any, Dict, List


Expand Down Expand Up @@ -38,7 +38,7 @@ def unique_field(self):
Hashed and included in anonymous telemetry to track adapter adoption.
Pick a field that can uniquely identify one team/organization building with this adapter
"""
return json.dumps(self.schemas_and_paths, sort_keys=True)
return gethostname()

def _connection_keys(self):
""" Keys to show when debugging """
Expand Down

0 comments on commit ed6cda0

Please sign in to comment.