Skip to content

Commit d89c1e2

Browse files
Ian Southamwilderrodrigues
authored andcommitted
Forgot to add append method
1 parent ec09f04 commit d89c1e2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • systemvm/patches/debian/config/opt/cloud/bin/cs

systemvm/patches/debian/config/opt/cloud/bin/cs/CsFile.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ def addeq(self, string):
7171
token = string.split('=')[0] + '='
7272
self.search(token, string)
7373

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+
7480
def add(self, string, where=-1):
7581
for index, line in enumerate(self.new_config):
7682
if line.strip() == string:

0 commit comments

Comments
 (0)