From 1a6b5facae035c881929fcf253830abd6b14c3b2 Mon Sep 17 00:00:00 2001 From: Angelo Fenoglio Date: Thu, 23 Dec 2021 16:46:49 -0300 Subject: [PATCH] Fix | Make sure image is pulled before formating (#78) --- leverage/modules/project.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/leverage/modules/project.py b/leverage/modules/project.py index 054d1547..bf18120a 100644 --- a/leverage/modules/project.py +++ b/leverage/modules/project.py @@ -304,6 +304,10 @@ def create(): # Format the code correctly logger.info("Reformatting terraform configuration to the standard style.") + # NOTE: This is done just for the sake of making sure the docker image is already available, + # otherwise two animations try to stack on each other and rich does not support that. + # TODO: Modularize docker handling as to avoid this. + tfrun(entrypoint="/bin/sh -c", command="'echo \"pull image\"'", enable_mfa=False, interactive=False) with console.status("Formatting..."): tfrun(command="fmt -recursive", enable_mfa=False, interactive=False)