Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ctx.root_config not accessible in operation instance template context. #334

Closed
jsoverson opened this issue Jun 27, 2023 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@jsoverson
Copy link
Contributor

Describe the bug
Using {{ctx.root_config.XXX}} in an operation instance with block results in an error.

To Reproduce

Invoke/run something with an operation instance that has configuration like:

---
kind: wick/component@v1
name: test
component:
  kind: wick/component/composite@v1
  with: 
    - name: token
      type: string
  operations:
    - name: mail_send
      uses:
        - name: CONFIG
          operation: core::sender
          with: 
            output:
              token: '{{ ctx.root_config.token }}'

Expected behavior
The op config gets rendered with the root token.

Actual behavior
Error occurs, complaining about unknown index

Environment:

  • OS: mac
  • Architecture: m1
  • Build Version: head
@jsoverson jsoverson added bug Something isn't working triage To be triaged and removed triage To be triaged labels Jun 27, 2023
@jsoverson
Copy link
Contributor Author

Fixed via #335

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant