From ea353b9e9f3ac2e50a0cc37bf5e2e89c8899e2d6 Mon Sep 17 00:00:00 2001 From: luke-lombardi <33990301+luke-lombardi@users.noreply.github.com> Date: Thu, 26 Dec 2024 11:55:59 -0500 Subject: [PATCH] set correct pool name and machine id --- pkg/repository/provider_redis.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/repository/provider_redis.go b/pkg/repository/provider_redis.go index 6797fbb5c..7bfc56164 100644 --- a/pkg/repository/provider_redis.go +++ b/pkg/repository/provider_redis.go @@ -311,8 +311,8 @@ func (r *ProviderRedisRepository) RegisterMachine(providerName, poolName, machin machineInfo.Gpu = poolConfig.GPUType machineInfo.Created = fmt.Sprintf("%d", time.Now().UTC().Unix()) machineInfo.LastKeepalive = fmt.Sprintf("%d", time.Now().UTC().Unix()) - machineInfo.PoolName = newMachineInfo.PoolName - machineInfo.MachineId = newMachineInfo.MachineId + machineInfo.PoolName = poolName + machineInfo.MachineId = machineId // Add machine to index machineIndexKey := common.RedisKeys.ProviderMachineIndex(providerName, poolName)