Possibility to set tech during update
This commit is contained in:
parent
45899f3b0c
commit
bc4b6c7bff
13
glue/main.go
13
glue/main.go
@ -422,6 +422,19 @@ func (p *Processor) Update(appTemplate apps.App) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Setup technology if it's noted in the request
|
||||||
|
if len(appTemplate.Setup.Tech) > 0 {
|
||||||
|
err := p.waitForApp()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
err = p.EnableTech(appTemplate.Setup.Tech, appTemplate.Setup.TechVersion)
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("failed to enable tech: %v", err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user