Skip to content
Snippets Groups Projects
Commit 694a385a authored by Manish Singh's avatar Manish Singh
Browse files

Update devops/ibm/ibm-zgy-dag/files/replace-variable.sh

parent 0f6e6587
No related branches found
No related tags found
1 merge request!137Merge ibm helm to master
Pipeline #140728 failed
......@@ -2,7 +2,7 @@
echo "Changing Source Dags"
sed -i '/from datetime import timedelta/ifrom json import dumps, loads' /opt/airflow/dags/segy_to_zgy_ingestion_dag.py
sed -i '/from datetime import timedelta/ifrom airflow.models import Variable' /opt/airflow/dags/segy_to_zgy_ingestion_dag.py
sed -i '/DAG_NAME = "{| DAG_NAME |}"/iaccess_token = "{{ dag_run.conf[\'execution_context\'][\'access_token\'] }}"' /opt/airflow/dags/segy_to_zgy_ingestion_dag.py
sed -i "/DAG_NAME = \"{| DAG_NAME |}\"/iaccess_token = \"{{ dag_run.conf['execution_context']['access_token'] }}\"" /opt/airflow/dags/segy_to_zgy_ingestion_dag.py
sed -i 's/"{| DAG_NAME |}"/"sgy-to-zgy"/g' /opt/airflow/dags/segy_to_zgy_ingestion_dag.py
sed -i 's/"{| DOCKER_IMAGE |}"/Variable.get("SGY_TO_ZGY_DOCKER_IMAGE")/g' /opt/airflow/dags/segy_to_zgy_ingestion_dag.py
sed -i 's/"{| NAMESPACE |}"/Variable.get("SGY_TO_ZGY_NAMESPACE")/g' /opt/airflow/dags/segy_to_zgy_ingestion_dag.py
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment