Correct the type of a default attribute in SNS PlatformEndpoint (#1267)

The `Enabled` Attribute in the PlatformEndpoint of SNS current returns a boolean, however, the 'enabled' property is expecting a string as `.lower()` is called on the result.

This change simply changes the default from `True` to `'True'` so the property works as expected.
This commit is contained in:
Andrew Miller 2017-10-17 18:42:29 +01:00 committed by Jack Danger
parent b8bb6c2dcf
commit 194da53a0e

View File

@ -146,7 +146,7 @@ class PlatformEndpoint(BaseModel):
if 'Token' not in self.attributes: if 'Token' not in self.attributes:
self.attributes['Token'] = self.token self.attributes['Token'] = self.token
if 'Enabled' not in self.attributes: if 'Enabled' not in self.attributes:
self.attributes['Enabled'] = True self.attributes['Enabled'] = 'True'
@property @property
def enabled(self): def enabled(self):