Skip to content

Commit

Permalink
parse locations from config as array (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmacata authored Jun 30, 2021
1 parent 2c6ed65 commit 5df0d97
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/openeo_grass_gis_driver/actinia_processing/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ def __init__(self):
if config.has_option("ACTINIA", "PORT"):
ACTINIA.PORT = config.get("ACTINIA", "PORT")
if config.has_option("ACTINIA", "LOCATIONS"):
ACTINIA.LOCATIONS = config.get("ACTINIA", "LOCATIONS")
locations = config.get("ACTINIA", "LOCATIONS")
# keep config values consistent, convert string to array here
ACTINIA.LOCATIONS = [
i.strip('" ') for i in locations.strip('[]').split(',')]
if config.has_option("ACTINIA", "USER"):
ACTINIA.USER = config.get("ACTINIA", "USER")
if config.has_option("ACTINIA", "PASSWORD"):
Expand Down

0 comments on commit 5df0d97

Please sign in to comment.