diff --git a/pkg/recipe/git.go b/pkg/recipe/git.go index d45ebe4a..77479477 100644 --- a/pkg/recipe/git.go +++ b/pkg/recipe/git.go @@ -14,9 +14,9 @@ import ( ) type EnsureContext struct { - Chaos bool - Offline bool - IgnoreEnv bool + Chaos bool + Offline bool + IgnoreEnvVersion bool } // Ensure makes sure the recipe exists, is up to date and has the specific @@ -40,7 +40,7 @@ func (r Recipe) Ensure(ctx EnsureContext) error { } } - if r.EnvVersion != "" && !ctx.IgnoreEnv { + if r.EnvVersion != "" && !ctx.IgnoreEnvVersion { log.Debugf("ensuring env version %s", r.EnvVersion) if _, err := r.EnsureVersion(r.EnvVersion); err != nil {