Skip to content

Commit

Permalink
Obtain the science image from env var
Browse files Browse the repository at this point in the history
  • Loading branch information
BenGalewsky committed May 30, 2023
1 parent b395605 commit 55d671b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions servicex_codegen/post_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 55d671b

Please sign in to comment.