Skip to content

Commit

Permalink
The environment variable for enabling the FAAS-mode has now preferenc…
Browse files Browse the repository at this point in the history
…e over the configuration file setting.
  • Loading branch information
duelle committed Jul 10, 2020
1 parent 970657b commit 0ac711d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion ctt-server/models/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,14 @@ def deploy(self):
time.sleep(30)

envFaasScenario = os.getenv('CTT_FAAS_ENABLED')
if (envFaasScenario and envFaasScenario == "1") or FaasScenario:
faas_mode = False
if envFaasScenario:
if envFaasScenario == "1":
faas_mode = True
elif FaasScenario:
faas_mode = True

if faas_mode:
# FaaS scenario
deployed_systems = Deployment.deployment_workaround(exclude_sut=True)
self.sut_hostname = self.__test_artifact.policy_yaml['properties']['hostname']
Expand Down
2 changes: 1 addition & 1 deletion ctt-server/util/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
SUTFile = 'sut_tosca.yaml'
TIFile = 'ti_tosca.yaml'
DropPolicies = True
FaasScenario = True
FaasScenario = False

0 comments on commit 0ac711d

Please sign in to comment.