mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-04-03 18:21:26 +00:00
Address consider-using-max-builtin.
This commit is contained in:
parent
da788d3669
commit
9bb3f8c3b3
@ -381,7 +381,6 @@ disable=raw-checker-failed,
|
|||||||
# To clean up:
|
# To clean up:
|
||||||
abstract-method,
|
abstract-method,
|
||||||
arguments-differ,
|
arguments-differ,
|
||||||
consider-using-max-builtin,
|
|
||||||
consider-using-with,
|
consider-using-with,
|
||||||
fixme,
|
fixme,
|
||||||
import-error, # TODO figure out why pylint cannot find the module
|
import-error, # TODO figure out why pylint cannot find the module
|
||||||
|
|||||||
@ -138,8 +138,7 @@ class AnsibleDockerSwarmClient(AnsibleDockerClient):
|
|||||||
True if node is part of swarm but its state is down, False otherwise
|
True if node is part of swarm but its state is down, False otherwise
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if repeat_check < 1:
|
repeat_check = max(1, repeat_check)
|
||||||
repeat_check = 1
|
|
||||||
|
|
||||||
if node_id is None:
|
if node_id is None:
|
||||||
node_id = self.get_swarm_node_id()
|
node_id = self.get_swarm_node_id()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user