From 6ea51dcea03e72a444c2d706778832dcece69e80 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Thu, 27 Jan 2011 09:30:37 -0500 Subject: fix bug in fixing permission on default log file --- cloudinit/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cloudinit/__init__.py') 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 -- cgit v1.2.3