digdag icon indicating copy to clipboard operation
digdag copied to clipboard

[issue] exported json object is converted into string on read unexpectedly

Open sonots-zozo opened this issue 7 years ago • 3 comments

_export:
  orig:
    key: 1

+task1:
  _export:
    alias: ${orig}
  sh>: echo ${alias} # {key:1}

+task2:
  _export:
    alias: ${orig}
  sh>: echo ${alias.key} # empty

I expected that ${orig} gives me a JSON object rather than a String "{key:1}"

sonots-zozo avatar Feb 08 '19 12:02 sonots-zozo

Please let me know if there is a reason that this spec is reasonable.

sonots-zozo avatar Feb 08 '19 12:02 sonots-zozo

Hi @sonots-zozo, sorry to be late. I'm not familiar with the behavior around parameters template. I will take a look but, take a time. then update back to you.

muga avatar Feb 15 '19 01:02 muga

Thanks.

FYI: It looked all variables are passed as a string (even 1 or false) at _export.

sonots avatar Feb 15 '19 01:02 sonots