

def to_shard_meta(self, host_map):
    config = config.get_db_config()
    host = host_map.get(config['HOST'], config['HOST'])
    return ShardMeta(id=self.shard_id, dbname=config['NAME'], host=host, port=int(config['PORT']))

dataset/ETHPy150Open dimagi/commcare-hq/corehq/sql_db/config.py DbShard.to_shard_meta/VarMisuse@14/19 `self`->`config`