Skip to content
This repository was archived by the owner on Jan 15, 2020. It is now read-only.

Commit cf0a4e0

Browse files
Edison SuEdison Su
authored andcommitted
bug 14034: add newline around configuration file. status 14034: resolved fixed. Reviewed-by: frank
1 parent bdc99ea commit cf0a4e0

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

agent/conf/agent.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@ zone=default
3030

3131
#vm.migrate.speed set the vm migrate speed, by default, it's the speed of guest network
3232
#local.storage.path local storage path, by default, it's /var/lib/libvirt/images/
33-
#cmds.timeout the timeout for time-consuming operations, such create/copy snapshot
33+
#cmds.timeout the timeout for time-consuming operations, such create/copy snapshot
34+
35+

python/lib/cloudutils/configFileOps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def save(self):
6262
match = re.match(matchString, line)
6363
if match is not None:
6464
if entry.op == "add" and entry.separator == "=":
65-
newline = entry.name + "=" + entry.value + "\n"
65+
newline = "\n" + entry.name + "=" + entry.value + "\n"
6666
entry.setState("set")
6767
newLines.append(newline)
6868
self.backups.append([line, newline])

0 commit comments

Comments
 (0)