Commit 989d0d71 authored by Jelte Jansen's avatar Jelte Jansen
Browse files

a bit of checks on get_config answer

git-svn-id: svn:// e5f2f494-b856-4b98-b285-d166d9295462
parent 6a70f64c
......@@ -82,6 +82,11 @@ class CCSession:
"""Asks the configuration manager for the current configuration, and call the config handler if set"""
self._session.group_sendmsg({ "command": [ "get_config", { "module_name": self._module_name } ] }, "ConfigManager")
answer, env = self._session.group_recvmsg(False)
if self._config_handler:
if "result" in answer:
if answer["result"][0] == 0 and len(answer["result"]) > 1:
new_config = answer["result"][1]
if self._data_definition.validate(new_config):
self._config = new_config;
if self._config_handler:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment