diff --git a/src/pkg/cluster/zarf.go b/src/pkg/cluster/zarf.go index 45803b0751..b990b3de81 100644 --- a/src/pkg/cluster/zarf.go +++ b/src/pkg/cluster/zarf.go @@ -224,8 +224,8 @@ func (c *Cluster) RecordPackageDeploymentAndWait(ctx context.Context, pkg v1alph return nil, err } packageNeedsWait, _, _ = c.PackageSecretNeedsWait(deployedPackage, component, skipWebhooks) - if !packageNeedsWait { - return deployedPackage, nil + if packageNeedsWait { + return nil, errors.New("wait on running webhook") } return deployedPackage, nil }, retry.Context(waitCtx), retry.Attempts(0), retry.DelayType(retry.FixedDelay), retry.Delay(time.Second))