Skip to content

Commit e6fbfae

Browse files
committed
chore: ruff linter--fix
Signed-off-by: Khushiyant <[email protected]>
1 parent d584562 commit e6fbfae

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

docker/types/containers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ def __init__(
703703
'healthcheck start period was introduced in API '
704704
'version 1.29'
705705
)
706-
706+
707707
if version_lt(version, '1.44') and 'StartInterval' in healthcheck:
708708
raise errors.InvalidVersion(
709709
'healthcheck start interval was introduced in API version 1.44'

docker/types/healthcheck.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Healthcheck(DictType):
2626
start_period (int): Start period for the container to
2727
initialize before starting health-retries countdown in
2828
nanoseconds. It should be 0 or at least 1000000 (1 ms).
29-
start_interval (int): It is interval to be used by healthchecks during the start period in
29+
start_interval (int): It is interval to be used by healthchecks during the start period in
3030
nanoseconds. It should be 0 or at least 1000000 (1 ms).
3131
"""
3232
def __init__(self, **kwargs):
@@ -94,7 +94,7 @@ def start_period(self, value):
9494
@property
9595
def start_interval(self):
9696
return self['StartInterval']
97-
97+
9898
@start_interval.setter
9999
def start_interval(self, value):
100100
self['StartInterval'] = value

tests/integration/api_healthcheck_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,3 @@ def test_healthcheck_start_interval(self):
8282
self.tmp_containers.append(container)
8383
self.client.start(container)
8484
wait_on_health_status(self.client, container, "healthy")
85-

0 commit comments

Comments
 (0)