Soundar created AIRFLOW-2141:
--------------------------------
Summary: Cannot create airflow variables when there is a list of
dictionary as a value
Key: AIRFLOW-2141
URL: https://issues.apache.org/jira/browse/AIRFLOW-2141
Project: Apache Airflow
Issue Type: Bug
Components: aws
Affects Versions: Airflow 1.8
Reporter: Soundar
Attachments: airflow_cli.png, airflow_cli2_crop.png
I'm trying to create Airflow variables using a json file. I am trying to import
airflow variables using UI(webserver) when I upload the json file I get this
error "Missing file or syntax error" and when I try to upload using airflow cli
not all the variables gets uploaded properly. The catch is that I have a list
of dictionary in my json file, say
ex:
{
"demo_archivedir": "/home/ubuntu/folders/archive",
"demo_filepattern": [
{
"id": "reference",
"pattern": "Sample Data.xlsx"
},
{
"id": "sale",
"pattern": "Sales.xlsx"
}
],
"demo_sourcepath": "/home/ubuntu/folders/input",
"demo_workdir": "/home/ubuntu/folders/working"
}
I've attached two images
img1. Using airflow variables cli command I was able to create partial
variables from my json file(airflow_cli.png)
img2. After inserting logs in the "airflow/bin/cli.py" file, I got this error.
(airflow_cli2_crop.png)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)