Skip to content

Commit

Permalink
Fix pycodestyle E201 and E202
Browse files Browse the repository at this point in the history
  • Loading branch information
m-erhardt committed Jan 31, 2025
1 parent 83b7f86 commit 96ea7a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions check_cisco_envtemp.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,10 @@ async def check_nxos_device(args):
# loop through temperature sensors

# Append to perfdata and output string
perfdata += (f'\'temp_{ sensor.identifier }\'={ sensor.get_value() }'
f';{ sensor.get_threshold("warning") or "" };'
f'{ sensor.get_threshold("critical") or "" };; ')
output += f'{ sensor.get_value() }°C, '
perfdata += (f'\'temp_{sensor.identifier}\'={sensor.get_value()}'
f';{sensor.get_threshold("warning") or ""};'
f'{sensor.get_threshold("critical") or ""};; ')
output += f'{sensor.get_value()}°C, '

# Calculate return code
if sensor.get_threshold("critical") is not None:
Expand Down

0 comments on commit 96ea7a2

Please sign in to comment.