This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository mum. See http://git.chorem.org/mum.git commit 2547482fe1e77e4771589a08e37e8cd6d4fc11e2 Author: Alexis Guilbaud <guilbaud@codelutin.com> Date: Thu Mar 12 11:35:46 2015 +0100 correction updated_packages et message du websocket_container --- app/modules/monitoring_modules/updated_packages.py | 5 +---- app/modules/notification_modules/websocket_container.py | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/app/modules/monitoring_modules/updated_packages.py b/app/modules/monitoring_modules/updated_packages.py index 4359b5c..87953fd 100644 --- a/app/modules/monitoring_modules/updated_packages.py +++ b/app/modules/monitoring_modules/updated_packages.py @@ -30,8 +30,5 @@ class UpdatedPackages: cmd = "apt-get upgrade -s" stdout = self.conn.exec_command(cmd) tab_res = stdout.split(':') - if len(tab_res) == 2: - res_check = False - else: - res_check = True + res_check = len(tab_res) <= 2 self.db.add_check(self.conn.get_addr_host(), "updated_packages", res_check) \ No newline at end of file diff --git a/app/modules/notification_modules/websocket_container.py b/app/modules/notification_modules/websocket_container.py index 28dce07..b23abed 100644 --- a/app/modules/notification_modules/websocket_container.py +++ b/app/modules/notification_modules/websocket_container.py @@ -16,4 +16,4 @@ class WebSocketContainer: def notify_state_change(self): for ws in self.ws_set: - ws.send(json.dumps({"RES_HOST_DEMAND": self.db.get_hosts()})) \ No newline at end of file + ws.send(json.dumps({"RES_GET_HOSTS": self.db.get_hosts()})) \ No newline at end of file -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.