Fix Exception when send message 'ServiceStub' object has no attribute 'pub'

Merged MaksimSmile13 requested to merge fix/discovery_commands into master

Ошибка возникает если тестировать дискавери, в которых происходит отправка событий через self.service.pub.

2020-01-20 17:44:25,186 [scheduler.discovery] [25331] [discovery|periodic||metrics] Pub Event: {'ts': 1579531465.1863465, 'object': 25331, 'data': {'$event': {'class': 'Config | Config Upload Failed', 'vars': {'path': 'CPU | Usage', 'full_path': 'CPU | Usage', 'threshold': '>= 40.0 <= 15.0', 'metric': 'CPU | Usage', 'value': '85.0', 'window_type': 'm', 'window': '1', 'window_function': 'avg'}}}}
2020-01-20 17:44:25,186 [scheduler.discovery] [25331] [discovery|periodic|06-PA6001-04-PA000085#360087|metrics] Exception when send message 'ServiceStub' object has no attribute 'pub'
Edited by Andrey Vertiprahov

Merge request reports