summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2016-07-13 15:10:54 -0700
committerJoshua Harlow <harlowja@gmail.com>2016-07-13 15:10:54 -0700
commitefcd08d9c7dfb7e6a27f71327ddb572fdd8e1cbe (patch)
tree8be4f493b6ab2e850eb5920d348bf4c416cf594b
parent6f594e40f5c265a01ffc19e9e177ce514e43fd54 (diff)
downloadcloud-init-efcd08d9c7dfb7e6a27f71327ddb572fdd8e1cbe.tar.gz
String format requires positions on python 2.6
-rw-r--r--cloudinit/net/eni.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/net/eni.py b/cloudinit/net/eni.py
index e5ed10fd..91f83e60 100644
--- a/cloudinit/net/eni.py
+++ b/cloudinit/net/eni.py
@@ -61,7 +61,7 @@ def _iface_add_subnet(iface, subnet):
value = " ".join(value)
if '_' in key:
key = key.replace('_', '-')
- content += " {} {}\n".format(key, value)
+ content += " {0} {1}\n".format(key, value)
return content
@@ -86,7 +86,7 @@ def _iface_add_attrs(iface):
if value and key not in ignore_map:
if type(value) == list:
value = " ".join(value)
- content += " {} {}\n".format(key, value)
+ content += " {0} {1}\n".format(key, value)
return content