Skip to content

Commit

Permalink
Merge from aws/aws-sam-cli/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sam-cli-bot committed Dec 3, 2020
2 parents 5c635a4 + 14c383e commit 66e22c4
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# pygtk.require().
#init-hook=

# Add files or directories to the blacklist. They should be base names, not
# Add files or directories to the ignore list. They should be base names, not
# paths.
ignore=compat.py, __main__.py

Expand Down
2 changes: 1 addition & 1 deletion samcli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
SAM CLI version
"""

__version__ = "1.13.1"
__version__ = "1.13.2"
4 changes: 3 additions & 1 deletion samcli/lib/package/artifact_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ def export_global_artifacts(self, template_dict):
"""
for key, val in template_dict.items():
if key in GLOBAL_EXPORT_DICT:
template_dict[key] = GLOBAL_EXPORT_DICT[key](val, self.uploader, self.template_dir)
template_dict[key] = GLOBAL_EXPORT_DICT[key](
val, self.uploader.get(ResourceZip.EXPORT_DESTINATION), self.template_dir
)
elif isinstance(val, dict):
self.export_global_artifacts(val)
elif isinstance(val, list):
Expand Down
1 change: 1 addition & 0 deletions tests/integration/package/test_package_command_zip.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def test_package_template_flag(self, template_file):
"aws-serverlessrepo-application.yaml",
"aws-serverless-statemachine.yaml",
"aws-stepfunctions-statemachine.yaml",
"aws-include-transform.yaml",
]
)
def test_package_barebones(self, template_file):
Expand Down
9 changes: 9 additions & 0 deletions tests/integration/testdata/package/aws-include-transform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
AWSTemplateFormatVersion : '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Transform only app

Resources:
'Fn::Transform':
Name: 'AWS::Include'
Parameters:
Location : ./main.py

0 comments on commit 66e22c4

Please sign in to comment.