diff options
author | Matt Coddington <coddington@gmail.com> | 2012-09-07 22:47:03 -0400 |
---|---|---|
committer | Michael DeHaan <michael.dehaan@gmail.com> | 2012-09-09 23:18:20 -0400 |
commit | d91f399b616a289c29176d45013e2b94873dfd5f (patch) | |
tree | 26437be262af43eec6a538325678cbc31a895a21 | |
parent | 42fcd24ffddfa2fe7b9360d89b10f543f6353c3c (diff) | |
download | ansible-d91f399b616a289c29176d45013e2b94873dfd5f.tar.gz |
make this python24 compatible
-rwxr-xr-x | library/setup | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/setup b/library/setup index 8cb4e49eaf..26cd7a5b71 100755 --- a/library/setup +++ b/library/setup @@ -519,9 +519,9 @@ class LinuxNetwork(Network): # interface name for each address if iface in interfaces: i = 0 - while '{0}_{1}'.format(iface, i) in interfaces: + while str(iface) + "_" + str(i) in interfaces: i += 1 - iface = '{0}_{1}'.format(iface, i) + iface = str(iface) + "_" + str(i) interfaces[iface] = {} interfaces[iface]['macaddress'] = macaddress |