From c0638842d8b2fc898e055311163a29ccf51fd609 Mon Sep 17 00:00:00 2001 From: Matt Coddington Date: Fri, 7 Sep 2012 22:47:03 -0400 Subject: [PATCH] make this python24 compatible --- library/setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/setup b/library/setup index 3083ff56006..5499c2f8576 100755 --- a/library/setup +++ b/library/setup @@ -537,9 +537,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