Skip to content

Commit

Permalink
fix black errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Renrut5 committed Aug 15, 2024
1 parent 7161e45 commit 3a69f5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pynautobot/core/endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ def run_and_wait(self, *args, api_version=None, interval=5, max_rechecks=50, **k
endpoint accepts can be added as a keyword arg.
api_version (str, optional): Override default or globally-set
Nautobot REST API version for this single request.
interval (int, optional): Time in seconds to wait between
interval (int, optional): Time in seconds to wait between
checking job results.
max_rechecks (int, optional): Number of times to check job result
before exiting the method.
Expand All @@ -717,7 +717,7 @@ def run_and_wait(self, *args, api_version=None, interval=5, max_rechecks=50, **k
class_path="local/data_quality/VerifyHostnames",
data={"hostname_regex": ".*"},
commit=True,
"""
if max_rechecks <= 0:
raise ValueError("Attribute `max_rechecks` must be a postive integer to prevent recursive loops.")
Expand Down

0 comments on commit 3a69f5c

Please sign in to comment.