Skip to content

Commit e565648

Browse files
committed
cli: fix missing config lock
Fixes: #1135
1 parent dc71c33 commit e565648

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pyinfra_cli/cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,8 @@ def _prepare_exec_operations(state, config, operations):
773773
def _prepare_deploy_operations(state, config, operations):
774774
# Number of "steps" to make = number of files * number of hosts
775775
for i, filename in enumerate(operations):
776+
config.lock_current_state()
777+
776778
_log_styled_msg = click.style(filename, bold=True)
777779
logger.info("Loading: {0}".format(_log_styled_msg))
778780

0 commit comments

Comments
 (0)