diff --git a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsFile.py b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsFile.py index 510b13f42cc..2a68b4c5691 100644 --- a/systemvm/patches/debian/config/opt/cloud/bin/cs/CsFile.py +++ b/systemvm/patches/debian/config/opt/cloud/bin/cs/CsFile.py @@ -71,6 +71,12 @@ class CsFile: token = string.split('=')[0] + '=' self.search(token, string) + def append(self, string, where=-1): + if where == -1: + self.new_config.append("%s\n" % string) + else: + self.new_config.insert(where, "%s\n" % string) + def add(self, string, where=-1): for index, line in enumerate(self.new_config): if line.strip() == string: