0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-05-16 22:25:12 +00:00

fix some python codacy errors ()

* debug error instead of continue

* portcheck: remove unused variable

* postgres: remove unused variable

* SocketService: log error on disconnect instead of pass

* SocketService: add ssl_version opt to ssl.wrap_socket call

* minor
This commit is contained in:
Ilya Mashchenko 2019-02-05 15:36:43 +03:00 committed by GitHub
parent 369967f27b
commit 0b946686b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 9 deletions
collectors/python.d.plugin/postgres

View file

@ -1068,7 +1068,7 @@ def add_replication_delta_chart(order, definitions, name, application_name):
chart_name = '_'.join([application_name, name])
position = order.index('database_size')
order.insert(position, chart_name)
name, title, units, family, context, chart_type = chart_template['options']
name, title, units, _, context, chart_type = chart_template['options']
definitions[chart_name] = {
'options': [name, title + ': ' + application_name, units, 'replication delta', context, chart_type],
'lines': create_lines(application_name, chart_template['lines'])}
@ -1086,7 +1086,7 @@ def add_replication_slot_chart(order, definitions, name, slot_name):
chart_name = '_'.join([slot_name, name])
position = order.index('database_size')
order.insert(position, chart_name)
name, title, units, family, context, chart_type = chart_template['options']
name, title, units, _, context, chart_type = chart_template['options']
definitions[chart_name] = {
'options': [name, title + ': ' + slot_name, units, 'replication slot files', context, chart_type],
'lines': create_lines(slot_name, chart_template['lines'])}