Skip to content

Commit

Permalink
updated valley requirement, added CFT to __init__
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjinwright committed Feb 18, 2019
1 parent 0fc3fac commit a22ac60
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
boto3>=1.4
boto3>=1.9.93
PyYAML>=3.12
valley>=1.5.0
valley>=1.5.2
7 changes: 6 additions & 1 deletion sammy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,9 +383,10 @@ def to_dict(self):

template = {
'AWSTemplateFormatVersion': self.aws_template_format_version,
'Transform': self.transform,
'Resources': resources
}
if self.transform:
template['Transform'] = self.transform
if obj.get('Description'):
template['Description'] = obj.get('Description')
if obj.get('parameters'):
Expand Down Expand Up @@ -521,3 +522,7 @@ def to_yaml(self):

def to_json(self):
return json.dumps(self.get_template_dict(),cls=ValleyEncoderNoType)


class CFT(SAM):
transform = None

0 comments on commit a22ac60

Please sign in to comment.