1 parent ec09f04 commit d89c1e2Copy full SHA for d89c1e2
1 file changed
systemvm/patches/debian/config/opt/cloud/bin/cs/CsFile.py
@@ -71,6 +71,12 @@ def addeq(self, string):
71
token = string.split('=')[0] + '='
72
self.search(token, string)
73
74
+ def append(self, string, where=-1):
75
+ if where == -1:
76
+ self.new_config.append("%s\n" % string)
77
+ else:
78
+ self.new_config.insert(where, "%s\n" % string)
79
+
80
def add(self, string, where=-1):
81
for index, line in enumerate(self.new_config):
82
if line.strip() == string:
0 commit comments