Skip to content

Commit

Permalink
fix: Inline data that was defined with AWS::Include (#1472)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfuss committed Oct 22, 2019
1 parent 0464b27 commit 79f524e
Show file tree
Hide file tree
Showing 6 changed files with 232 additions and 78 deletions.
1 change: 1 addition & 0 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ backports.tempfile==1.0
pytest-xdist==1.20.0
pytest-forked==1.0.2
pytest-timeout==1.3.3
pytest-rerunfailures==5.0
5 changes: 4 additions & 1 deletion samcli/lib/intrinsic_resolver/intrinsic_property_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
verify_all_list_intrinsic_type,
)
from samcli.lib.intrinsic_resolver.invalid_intrinsic_exception import InvalidIntrinsicException, InvalidSymbolException
from samcli.commands._utils.template import get_template_data

LOG = logging.getLogger(__name__)

Expand Down Expand Up @@ -562,7 +563,9 @@ def handle_fn_transform(self, intrinsic_value, ignore_errors):
)

location = self.intrinsic_property_resolver(parameters.get("Location"), ignore_errors)
return location
location_data = get_template_data(location)

return location_data

def handle_fn_import_value(self, intrinsic_value, ignore_errors):
"""
Expand Down
Loading

0 comments on commit 79f524e

Please sign in to comment.