Skip to content

Commit

Permalink
fix bool parse
Browse files Browse the repository at this point in the history
  • Loading branch information
bodsch committed Sep 5, 2022
1 parent db48472 commit 962b8dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/dht_to_influx.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ def convert_bool(obj):
return False
if str(obj).lower() not in ('yes', 'true', '1'):
raise ansible.errors.AnsibleConnectionFailure(
f"expected yes/no/true/false/0/1, got {obj}")
f"expected yes/no/true/false/0/1, got {obj}"
)

return True


Expand Down

0 comments on commit 962b8dd

Please sign in to comment.