mirror of
https://github.com/netdata/netdata.git
synced 2025-05-17 14:42:21 +00:00
fix some python codacy errors (#5331)
* 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:
parent
369967f27b
commit
0b946686b3
4 changed files with 11 additions and 9 deletions
collectors/python.d.plugin/postgres
|
@ -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'])}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue