diff --git a/pkg/executor/role_executor.go b/pkg/executor/role_executor.go index 1ab23d7e..c6958ba7 100644 --- a/pkg/executor/role_executor.go +++ b/pkg/executor/role_executor.go @@ -53,7 +53,7 @@ func (e roleExecutor) Exec(ctx context.Context) error { ignoreErrors: e.ignoreErrors, blocks: e.role.Block, role: e.role.Role, - when: e.role.When.Data, + when: e.dealWhen(e.role.When), tags: e.tags, }.Exec(ctx)) }