ia64/xen-unstable

changeset 16382:79d050b2b35e

xend, xenapi: Strip characters from logs that XMLRPC layer cannot handle.
From: Ian Jackson <ian.jackson@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Nov 16 14:45:35 2007 +0000 (2007-11-16)
parents d1ac500f77c1
children ef4b60c99735
files tools/python/xen/xend/XendAPI.py
line diff
     1.1 --- a/tools/python/xen/xend/XendAPI.py	Fri Nov 16 14:40:22 2007 +0000
     1.2 +++ b/tools/python/xen/xend/XendAPI.py	Fri Nov 16 14:45:35 2007 +0000
     1.3 @@ -994,6 +994,8 @@ class XendAPI(object):
     1.4      def host_get_log(self, session, host_ref):
     1.5          log_file = open(XendLogging.getLogFilename())
     1.6          log_buffer = log_file.read()
     1.7 +        log_buffer = log_buffer.replace('\b', ' ')
     1.8 +        log_buffer = log_buffer.replace('\f', '\n')
     1.9          return xen_api_success(log_buffer)
    1.10  
    1.11      def host_send_debug_keys(self, _, host_ref, keys):