Require access to Still via method
This commit adds a safeguard to accessing the still from a specific component by requiring access via the component.GetStill method.
This commit is contained in:
parent
81fa84c244
commit
8235ea9105
63 changed files with 288 additions and 197 deletions
|
|
@ -10,7 +10,7 @@ import (
|
|||
|
||||
// Running checks if this WissKI is currently running.
|
||||
func (barrel *Barrel) Running(ctx context.Context) (bool, error) {
|
||||
containers, err := barrel.Docker.Containers(ctx, barrel.Stack().Dir)
|
||||
containers, err := ingredient.GetLiquid(barrel).Docker.Containers(ctx, barrel.Stack().Dir)
|
||||
if err != nil {
|
||||
// The compose file is gone => the stack doesn't exist.
|
||||
// Probably means some purging got interrupted.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue