diff options
Diffstat (limited to 'cloudinit/CloudConfig/cc_rsyslog.py')
-rw-r--r-- | cloudinit/CloudConfig/cc_rsyslog.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/CloudConfig/cc_rsyslog.py b/cloudinit/CloudConfig/cc_rsyslog.py index 3320dbb2..a8ee8476 100644 --- a/cloudinit/CloudConfig/cc_rsyslog.py +++ b/cloudinit/CloudConfig/cc_rsyslog.py @@ -64,7 +64,7 @@ def handle(name,cfg,cloud,log,args): try: util.write_file(filename, content + "\n", omode=omode) - except Exception, e: + except Exception as e: log.debug(traceback.format_exc(e)) elst.append((content, "failed to write to %s" % filename)) @@ -83,7 +83,7 @@ def handle(name,cfg,cloud,log,args): p = util.subp(['service', 'rsyslog', 'restart']) restarted = True - except Exception, e: + except Exception as e: elst.append(("restart", str(e))) if restarted: |