Skip to content

Commit

Permalink
fix logical mistake
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Osypenko <dosypenk@redhat.com>
  • Loading branch information
DanielOsypenko committed Sep 24, 2023
1 parent 66ab278 commit 071756e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocs_ci/utility/prometheus.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def __init__(self, user=None, password=None, threading_lock=None):
Args:
user (str): OpenShift username used to connect to API
"""
if not threading_lock:
if threading_lock is None:
raise NoThreadingLockUsedError(
"using threading.Lock object is mandatory for PrometheusAPI class"
)
Expand Down

0 comments on commit 071756e

Please sign in to comment.