Netflix / aminator

A tool for creating EBS AMIs. This tool currently works for CentOS/RedHat Linux images and is intended to run on an EC2 instance.
Apache License 2.0
950 stars 170 forks source link

Allow use of `format` to be Python 2.6 compatible #192

Closed grahamlyons closed 10 years ago

grahamlyons commented 10 years ago

This pull request adds indices to the interpolated variables in strings.

The string format method in Python 2.6 doesn't like the {} style of variable interpolation - it requires an index or name in there.

Running this: python -c '"{}".format(1)'

Gives this error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ValueError: zero length field name in format
cloudbees-pull-request-builder commented 10 years ago

aminator-pull-requests #170 SUCCESS This pull request looks good

coryb commented 10 years ago

Looks good, thanks! -Cory