HashSalmon opened a new issue #16354: URL: https://github.com/apache/airflow/issues/16354
**Apache Airflow version**: Airflow 2.0.2 **Environment**: - **Cloud provider or hardware configuration**: AWS - **OS** (e.g. from /etc/os-release): Linux - **Kernel** (e.g. `uname -a`): 3.10.0-1062.12.1.el7.x86_64 - **Install tools**: rh-python36 - **Others**: **What happened**: After exporting the variables into a json file by running `airflow variables export /some_path/var.json`, when I import the variables from CLI by running `airflow variables import /some_path/var.json`. All of the variables will be messed up when you check them on the UI page. However, if you import the variables from airflow webUI, it works fine. **What you expected to happen**: The airflow variables export CLI should work properly. **How to reproduce it**: - Create some variables in your airflow env. - Run `airflow variables export /some_path/var.json` to export the vars. - Delete all of the variables or run `airflow db reset` - Run `airflow variables import /some_path/var.json` - Check the new imported variables, the values of the variables are wrong. - Go do the web UI -> click Admin -> click Variables -> choose files -> choose the var.json -> click import variables. - All of the vars shows correctly with correct values. **Anything else we need to know**: N/A -- 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: [email protected]
