Revision 02b31f32 lib/ssconf.py
b/lib/ssconf.py | ||
---|---|---|
185 | 185 |
ssconf_lock.Exclusive(blocking=True, timeout=SSCONF_LOCK_TIMEOUT) |
186 | 186 |
try: |
187 | 187 |
for name, value in values.iteritems(): |
188 |
if not value.endswith("\n"): |
|
188 |
if value and not value.endswith("\n"):
|
|
189 | 189 |
value += "\n" |
190 | 190 |
utils.WriteFile(self.KeyToFilename(name), data=value) |
191 | 191 |
finally: |
Also available in: Unified diff