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

Method backup

python/lib/cloudutils/configFileOps.py:174–179  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

172 open(self.fileName, "w").writelines(newlines)
173
174 def backup(self):
175 for oldLine, newLine in self.backups:
176 if newLine is None:
177 self.add_lines(oldLine, False)
178 else:
179 self.replace_lines(newLine, oldLine, False)

Callers

nothing calls this directly

Calls 2

add_linesMethod · 0.95
replace_linesMethod · 0.95

Tested by

no test coverage detected