diff --git a/make_argocd_fly/application.py b/make_argocd_fly/application.py index 8423a25..a06dd5c 100644 --- a/make_argocd_fly/application.py +++ b/make_argocd_fly/application.py @@ -145,11 +145,12 @@ async def _run_kustomize(self, dir_path: str, retries: int = 3) -> str: log.error('Kustomize error: {}'.format(stderr)) log.info('Retrying {}/{}'.format(attempt + 1, retries)) continue - - return stdout.decode("utf-8") + break else: raise Exception('Kustomize run failed') + return stdout.decode("utf-8") + async def prepare(self) -> str: config = get_config() tmp_dir = config.get_tmp_dir()