bug 14034: add newline around configuration file. status 14034: resolved fixed. Reviewed-by: frank

This commit is contained in:
Edison Su 2012-02-27 15:38:32 -08:00
parent bdc99ea17a
commit cf0a4e0274
2 changed files with 4 additions and 2 deletions

View File

@ -30,4 +30,6 @@ zone=default
#vm.migrate.speed set the vm migrate speed, by default, it's the speed of guest network
#local.storage.path local storage path, by default, it's /var/lib/libvirt/images/
#cmds.timeout the timeout for time-consuming operations, such create/copy snapshot
#cmds.timeout the timeout for time-consuming operations, such create/copy snapshot

View File

@ -62,7 +62,7 @@ class configFileOps:
match = re.match(matchString, line)
if match is not None:
if entry.op == "add" and entry.separator == "=":
newline = entry.name + "=" + entry.value + "\n"
newline = "\n" + entry.name + "=" + entry.value + "\n"
entry.setState("set")
newLines.append(newline)
self.backups.append([line, newline])