Skip to content

Commit

Permalink
Fix copy script loc (#4253)
Browse files Browse the repository at this point in the history
* Fix path of copy script

* remove commented line
  • Loading branch information
hawflau authored Sep 21, 2022
1 parent 10f0be9 commit abd072c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samcli/hook_packages/terraform/hooks/prepare/hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def prepare(params: dict) -> dict:
)
raise PrepareHookException("There was an error while preparing the Terraform application.") from e
except OSError as e:
raise PrepareHookException(f"Unable to create directory {output_dir_path}") from e
raise PrepareHookException(f"OSError: {e}") from e


def _update_resources_paths(cfn_resources: Dict[str, Any], terraform_application_dir: str) -> None:
Expand Down Expand Up @@ -803,7 +803,7 @@ def _generate_makefile(

# copy copy_terraform_built_artifacts.py script into output directory
copy_terraform_built_artifacts_script_path = os.path.join(
Path(os.path.dirname(__file__)).parent, TERRAFORM_BUILD_SCRIPT
Path(os.path.dirname(__file__)).parent.parent, TERRAFORM_BUILD_SCRIPT
)
shutil.copy(copy_terraform_built_artifacts_script_path, output_directory_path)

Expand Down

0 comments on commit abd072c

Please sign in to comment.