You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/06/21 17:08:00 UTC

[jira] [Commented] (AIRFLOW-3864) Variables import CLI command doesn't set lists as JSON

    [ https://issues.apache.org/jira/browse/AIRFLOW-3864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16869696#comment-16869696 ] 

ASF GitHub Bot commented on AIRFLOW-3864:
-----------------------------------------

kaxil commented on pull request #4686: [AIRFLOW-3864] Recognize lists as JSON in variables --import
URL: https://github.com/apache/airflow/pull/4686
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> 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, 1.10.3, 2.0.0
>            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)