Address consider-using-max-builtin.

This commit is contained in:
Felix Fontein 2025-10-11 14:33:43 +02:00
parent da788d3669
commit 9bb3f8c3b3
2 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -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()