Skip to content

Commit

Permalink
set correct pool name and machine id
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-lombardi committed Dec 26, 2024
1 parent 396b967 commit ea353b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/repository/provider_redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ea353b9

Please sign in to comment.