File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ COPY --from=build /venv/ /venv/
2828COPY tests/test_data/beamline_parameters.txt tests/test_data/beamline_parameters.txt
2929ENV PATH=/venv/bin:$PATH
3030ARG BEAMLINE="dev"
31- ENV BEAMLINE=${RUN_APP_IN_DEV_MODE }
31+ ENV BEAMLINE=${BEAMLINE }
3232
3333# change this entrypoint if it is not the same as the repo
3434CMD daq-config-server
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ echo "========================================="
5757echo " "
5858echo " Building ${MAIN_CONTAINER_NAME} "
5959echo " "
60- podman build --build-arg RUN_APP_IN_DEV_MODE= $MAIN_APP_DEV_MODE -t $MAIN_CONTAINER_NAME .
60+ podman build --build-arg -t $MAIN_CONTAINER_NAME .
6161if [ $PUSH -gt 0 ]; then
6262 podman tag $MAIN_CONTAINER_NAME $MAIN_CONTAINER_TAG
6363 podman push $MAIN_CONTAINER_NAME $MAIN_CONTAINER_TAG
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ def get_configuration(file_path: Path):
2828 https://github.com/DiamondLightSource/daq-config-server/issues/67, this endpoint
2929 will convert commonly read files to a dictionary format
3030 """
31- if not file_path .exists ():
31+ if not file_path .is_file ():
3232 raise FileNotFoundError (f"File { file_path } cannot be found" )
3333
3434 with file_path .open ("r" , encoding = "utf-8" ) as f :
Original file line number Diff line number Diff line change 11from logging import Logger , getLogger
2- from typing import TypeVar
2+ from typing import Any , TypeVar
33
44import requests
55
@@ -22,7 +22,7 @@ def _get(
2222 r = requests .get (self ._url + endpoint + (f"/{ item } " if item else "" ))
2323 return r .json ()
2424
25- def read_unformatted_file (self , file_path : str ) -> BlParamDType | None :
25+ def read_unformatted_file (self , file_path : str ) -> Any :
2626 # After https://github.com/DiamondLightSource/daq-config-server/issues/67, we
2727 # can get specific formats, and then have better typing on
2828 # return values
You can’t perform that action at this time.
0 commit comments