Add image alias if not there

On LXD, if the list of image aliases does not include the image name
we just fetched from the simplestreams remote, add it to the list.
This commit is contained in:
Gabriel Adrian Samfira 2022-06-17 15:31:47 +00:00
parent a8274dcc02
commit 808bc42d33
2 changed files with 16 additions and 3 deletions

View file

@ -405,7 +405,6 @@ func (r *basePool) updateArgsFromProviderInstance(providerInstance params.Instan
func (r *basePool) ensureIdleRunnersForOnePool(pool params.Pool) {
if !pool.Enabled {
log.Printf("pool %s is disabled, skipping", pool.ID)
return
}
existingInstances, err := r.store.ListPoolInstances(r.ctx, pool.ID)
@ -449,7 +448,6 @@ func (r *basePool) ensureIdleRunnersForOnePool(pool params.Pool) {
func (r *basePool) retryFailedInstancesForOnePool(pool params.Pool) {
if !pool.Enabled {
log.Printf("pool %s is disabled, skipping", pool.ID)
return
}
@ -464,7 +462,6 @@ func (r *basePool) retryFailedInstancesForOnePool(pool params.Pool) {
continue
}
if instance.CreateAttempt >= maxCreateAttempts {
log.Printf("instance %s max create attempts (%d) reached", instance.Name, instance.CreateAttempt)
continue
}