diff --git a/packages/@aws-cdk/aws-eks/lib/kubectl-handler/apply/__init__.py b/packages/@aws-cdk/aws-eks/lib/kubectl-handler/apply/__init__.py index 80e9a7891481e..8498ccaaa6cc2 100644 --- a/packages/@aws-cdk/aws-eks/lib/kubectl-handler/apply/__init__.py +++ b/packages/@aws-cdk/aws-eks/lib/kubectl-handler/apply/__init__.py @@ -81,8 +81,8 @@ def kubectl(verb, file, *opts): except subprocess.CalledProcessError as exc: output = exc.output if b'i/o timeout' in output and retry > 0: - retry = retry - 1 - logger.info("kubectl timed out, retries left: %s" % retry) + retry = retry - 1 + logger.info("kubectl timed out, retries left: %s" % retry) else: raise Exception(output) else: