From 55d671bd2a52911d7c20b60103cc3ca66fdff5a1 Mon Sep 17 00:00:00 2001 From: Ben Galewsky Date: Tue, 30 May 2023 15:20:57 -0500 Subject: [PATCH] Obtain the science image from env var --- servicex_codegen/post_operation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servicex_codegen/post_operation.py b/servicex_codegen/post_operation.py index bdcc2f7..3ba9645 100644 --- a/servicex_codegen/post_operation.py +++ b/servicex_codegen/post_operation.py @@ -35,7 +35,7 @@ import zipfile from tempfile import TemporaryDirectory -from flask import Response, current_app, request +from flask import Response, request from flask_restful import Resource from requests_toolbelt import MultipartEncoder @@ -92,7 +92,7 @@ def post(self): zip_data = self.stream_generated_code(generated_code_result) # code gen transformer returns the default transformer image mentioned in # the config file - transformer_image = current_app.config.get("TRANSFORMER_SCIENCE_IMAGE") + transformer_image = os.environ.get("TRANSFORMER_SCIENCE_IMAGE") # MultipartEncoder library takes multiple types of data fields and merge # them into a multipart mime data type