mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-03-16 20:14:08 +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:
|
||||
abstract-method,
|
||||
arguments-differ,
|
||||
consider-using-max-builtin,
|
||||
consider-using-with,
|
||||
fixme,
|
||||
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
|
||||
"""
|
||||
|
||||
if repeat_check < 1:
|
||||
repeat_check = 1
|
||||
repeat_check = max(1, repeat_check)
|
||||
|
||||
if node_id is None:
|
||||
node_id = self.get_swarm_node_id()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user