Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
drotscher authored Feb 22, 2024
1 parent 893e88d commit 836d2e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metricq_source_ipmi/source/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ async def try_fix_hosts(conf, hosts_to_fix):
for metric_sufix, metric_data in conf['metrics'].items():
for sensor in metric_data['sensors']:
try:
if conf['record_ids'] != None:
if conf['record_ids'] is not None:
conf['record_ids'].add(
data[sensor][host]['record_id'],
)
Expand Down Expand Up @@ -365,7 +365,7 @@ async def create_conf_and_metrics(conf_part, default_interval):
for host, host_name in zip(hosts, host_names):
for sensor in new_conf['metrics'][metric_sufix]['sensors']:
try:
if new_conf['record_ids'] != None:
if new_conf['record_ids'] is not None:
new_conf['record_ids'].add(
queried_sensor_data[sensor][host]['record_id'],
)
Expand Down

0 comments on commit 836d2e6

Please sign in to comment.