summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-01-27 09:30:37 -0500
committerScott Moser <smoser@ubuntu.com>2011-01-27 09:30:37 -0500
commit6ea51dcea03e72a444c2d706778832dcece69e80 (patch)
tree195b3c00433d36bbea85f968a053b5b602e67e3d
parent120a1a17420e41640fbc6d4d0b3bb35563f67fb1 (diff)
downloadvyos-cloud-init-6ea51dcea03e72a444c2d706778832dcece69e80.tar.gz
vyos-cloud-init-6ea51dcea03e72a444c2d706778832dcece69e80.zip
fix bug in fixing permission on default log file
-rw-r--r--ChangeLog2
-rw-r--r--cloudinit/__init__.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e6e6284c..af417a14 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,5 @@
+0.6.1:
+ - fix bug in fixing permission on /var/log/cloud-init.log (LP: #704509)
0.6.0:
- change permissions of /var/log/cloud-init.log to accomodate
syslog writing to it (LP: #704509)
diff --git a/cloudinit/__init__.py b/cloudinit/__init__.py
index 034e4bd6..acedf77e 100644
--- a/cloudinit/__init__.py
+++ b/cloudinit/__init__.py
@@ -487,8 +487,8 @@ def initfs():
log_file = cfg['def_log_file']
fp = open(log_file,"ab")
fp.close()
- if log_file and 'syslog' in cfg:
- perms = cfg['syslog']
+ if log_file and 'syslog_fix_perms' in cfg:
+ perms = cfg['syslog_fix_perms']
(u,g) = perms.split(':',1)
if u == "-1" or u == "None": u = None
if g == "-1" or g == "None": g = None