Skip to content

Commit

Permalink
Fix | Make sure image is pulled before formating (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
angelofenoglio authored Dec 23, 2021
1 parent 001b707 commit 1a6b5fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions leverage/modules/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 1a6b5fa

Please sign in to comment.