Skip to content
Snippets Groups Projects
Commit bad7fd80 authored by Georgios Katsikas's avatar Georgios Katsikas
Browse files

Merge branch 'pr-dev-service-fix' into 'develop'

fix: running config rules should not contain exceptions

See merge request teraflow-h2020/controller!180
parents c4e26ab7 bac7d9b8
No related branches found
No related tags found
2 merge requests!54Release 2.0.0,!4Compute component:
...@@ -223,7 +223,7 @@ class DeviceServiceServicerImpl(DeviceServiceServicer): ...@@ -223,7 +223,7 @@ class DeviceServiceServicerImpl(DeviceServiceServicer):
running_config_rules = driver.GetConfig() running_config_rules = driver.GetConfig()
running_config_rules = [ running_config_rules = [
(ORM_ConfigActionEnum.SET, config_rule[0], json.dumps(config_rule[1], sort_keys=True)) (ORM_ConfigActionEnum.SET, config_rule[0], json.dumps(config_rule[1], sort_keys=True))
for config_rule in running_config_rules for config_rule in running_config_rules if not isinstance(config_rule[1], Exception)
] ]
#for running_config_rule in running_config_rules: #for running_config_rule in running_config_rules:
# LOGGER.info('[ConfigureDevice] running_config_rule: {:s}'.format(str(running_config_rule))) # LOGGER.info('[ConfigureDevice] running_config_rule: {:s}'.format(str(running_config_rule)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment