Skip to content

Commit

Permalink
Fix style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpops committed Sep 30, 2017
1 parent 6acf6aa commit c7e7649
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions troposphere/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ class AccelerateConfiguration(AWSProperty):
]

def validate(self):
if 'AccelerationStatus' in self.properties:
if self.properties['AccelerationStatus'] not in self.acceleration_status_values:
raise ValueError('AccelerateConfiguration.AccelerationStatus must be one of "%s"' % (
if 'AccelerationStatus' not in self.properties:
status = self.properties['AccelerationStatus']
if status not in self.acceleration_status_values:
raise ValueError('AccelerationStatus must be one of "%s"' % (
', '.join(self.acceleration_status_values)))


Expand Down

0 comments on commit c7e7649

Please sign in to comment.