Skip to content

Passing yaml encoded KCL to template.execute results in unicode hex charaters being added instead of actual char #1976

@adrianrademann

Description

@adrianrademann

Bug Report

1. Minimal reproduce step (Required)

import yaml
import template

test = {
    key = template.execute("""{{ _val }}""", {_val: yaml.encode(_val)})
}


_val = {
    config = {
        timeout = "5m"
    }
}

2. What did you expect to see? (Required)

test:
  key: |
    config:
      timout: "5m"

3. What did you see instead (Required)

test:
  key: |
    config:
      timout: '5m'

4. What is your KCL components version? (Required)

0.11.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions