Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix copy script loc #4253

Merged
merged 2 commits into from
Sep 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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