MCPcopy Create free account
hub / github.com/apache/cloudstack / replace_or_add_line

Method replace_or_add_line

python/lib/cloudutils/configFileOps.py:127–128  ·  view source on GitHub ↗
(self, startswith,stanza)

Source from the content-addressed store, hash-verified

125 open(self.fileName,"w").writelines(newlines)
126
127 def replace_or_add_line(self, startswith,stanza):
128 return self.replace_line(startswith,stanza,always_add=True)
129
130 def add_lines(self, lines, addToBackup=True):
131 fp = open(self.fileName).read(-1)

Callers 1

setupLiveMigrationMethod · 0.45

Calls 1

replace_lineMethod · 0.95

Tested by

no test coverage detected