[
https://issues.apache.org/jira/browse/AIRFLOW-3864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ash Berlin-Taylor resolved AIRFLOW-3864.
----------------------------------------
Resolution: Duplicate
> Variables import CLI command doesn't set lists as JSON
> ------------------------------------------------------
>
> Key: AIRFLOW-3864
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3864
> Project: Apache Airflow
> Issue Type: Bug
> Components: cli
> Affects Versions: 1.10.2, 2.0.0, 1.10.3
> Reporter: Sam Fonseca
> Assignee: Sam Fonseca
> Priority: Minor
>
> The variables import CLI command only sets a variable as JSON if it's a dict.
> This means that lists are set as plaintext, despite being valid JSON.
> For example, with the following import file
> {code:java}
> {
> "list_var": ["a", "b", "c"]
> }{code}
> "list_var" will be set to
> {code:java}
> ['a', 'b', 'c']{code}
> which can't be decoded as JSON.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)