Commit aa95892b authored by Leo Iannacone's avatar Leo Iannacone

better event name label

parent e9bdc5f6
...@@ -44,7 +44,7 @@ function __send_package_files_list(event_name, socket, data) { ...@@ -44,7 +44,7 @@ function __send_package_files_list(event_name, socket, data) {
function __send_package_status(socket, data, package_data) { function __send_package_status(socket, data, package_data) {
var event_name = config.events.client.distribution_packages.status; var event_name = config.events.client.distribution_packages_status;
var new_data = {}; var new_data = {};
new_data.distribution = data.distribution; new_data.distribution = data.distribution;
......
...@@ -72,17 +72,17 @@ config.version = '0.4.2'; ...@@ -72,17 +72,17 @@ config.version = '0.4.2';
config.events = {}; config.events = {};
config.events.error = 'error'; config.events.error = 'error';
config.events.broadcast = {}; config.events.broadcast = {};
config.events.broadcast.distributions = 'distributions'; config.events.broadcast.distributions = 'b.distributions';
config.events.broadcast.status_update = 'status_update'; config.events.broadcast.status_update = 'b.status_update';
config.events.broadcast.status_debomatic = 'status_debomatic'; config.events.broadcast.status_debomatic = 'b.status_debomatic';
config.events.client = {}; config.events.client = {};
config.events.client.distribution_packages = 'distribution_packages'; config.events.client.distribution_packages = 'c.distribution_packages';
config.events.client.distribution_packages.status = 'package_status'; config.events.client.distribution_packages_status = 'c.distribution_packages_status';
config.events.client.package_files_list = 'package_files_list'; config.events.client.package_files_list = 'c.package_files_list';
config.events.client.file = 'file'; config.events.client.file = 'c.file';
config.events.client.file_newcontent = 'file_newcontent'; config.events.client.file_newcontent = 'c.file_newcontent';
config.events.client.status = 'status'; config.events.client.status = 'c.status';
// debomatic status according with JSONLogger.py module // debomatic status according with JSONLogger.py module
config.status = {}; config.status = {};
......
...@@ -589,8 +589,8 @@ function Page_Distrubion(socket) { ...@@ -589,8 +589,8 @@ function Page_Distrubion(socket) {
packages.set(socket_data); packages.set(socket_data);
}); });
socket.on(_e.distribution_packages.status, function (socket_data) { socket.on(_e.distribution_packages_status, function (socket_data) {
debug_socket('received', _e.distribution_packages, socket_data); debug_socket('received', _e.distribution_packages_status, socket_data);
packages.set_status(socket_data); packages.set_status(socket_data);
sticky.set_status(socket_data); sticky.set_status(socket_data);
}); });
......
Markdown is supported
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