Check the deployment dir exists when syncing
parent
d0041bc820
commit
693259473e
|
|
@ -474,6 +474,8 @@ def create_operation(deployment_command_context, spec_file, deployment_dir, sync
|
|||
if opts.o.debug:
|
||||
print(f"Syncing existing deployment at {deployment_dir_path}")
|
||||
else:
|
||||
if sync:
|
||||
error_exit(f"--sync requires that {deployment_dir_path} already exists")
|
||||
os.mkdir(deployment_dir_path)
|
||||
# Copy spec file and the stack file into the deployment dir
|
||||
copyfile(spec_file, deployment_dir_path.joinpath(constants.spec_file_name))
|
||||
|
|
|
|||
Loading…
Reference in New Issue