Skip to content

Commit

Permalink
Use %d string interpolation instead of {}.
Browse files Browse the repository at this point in the history
  • Loading branch information
darabos committed Sep 1, 2014
1 parent a1854d7 commit 1ceb2c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ec2/spark_ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def launch_cluster(conn, opts, cluster_name):
if opts.instance_type.startswith('m3.'):
for i in range(get_num_disks(opts.instance_type)):
dev = BlockDeviceType()
dev.ephemeral_name = 'ephemeral{}'.format(i)
dev.ephemeral_name = 'ephemeral%d' % i
# The first ephemeral drive is /dev/sdb.
name = '/dev/sd' + string.letters[i + 1]
block_map[name] = dev
Expand Down

0 comments on commit 1ceb2c8

Please sign in to comment.