Skip to content

Commit 707553d

Browse files
committed
Set default values
1 parent 188014a commit 707553d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
class Settings:
2525
def __init__(self, config):
2626
"""Creator function."""
27-
self.toscaDir = config['TOSCA_TEMPLATES_DIR'] + "/"
28-
self.toscaParamsDir = config.get('TOSCA_PARAMETERS_DIR') + "/"
27+
self.toscaDir = config.get('TOSCA_TEMPLATES_DIR', '') + "/"
28+
self.toscaParamsDir = config.get('TOSCA_PARAMETERS_DIR', '') + "/"
2929
self.imUrl = config['IM_URL']
3030
self.oidcUrl = config['OIDC_BASE_URL']
3131
self.tempSlamUrl = config.get('SLAM_URL') if config.get('SLAM_URL') else ""

0 commit comments

Comments
 (0)