Skip to content

Commit

Permalink
Skip create step when created == true - closes #4037
Browse files Browse the repository at this point in the history
  • Loading branch information
mluzarreta committed Sep 8, 2023
1 parent 01631c7 commit 45b3656
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/molecule/command/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ def execute(self, action_args=None):
"""
self._config.state.change_state("driver", self._config.driver.name)

if self._config.state.created:
msg = "Skipping, instances already created."
LOG.warning(msg)
return

self._config.provisioner.create()

self._config.state.change_state("created", True)
Expand Down

0 comments on commit 45b3656

Please sign in to comment.