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:
parent
a8274dcc02
commit
808bc42d33
2 changed files with 16 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue