'For backwards compatibility only.  This can safely be removed in the
future.
The scheduler used to create files at results/hosts/<hostname>, and
append all host logs to that file.  Now, it creates directories at
results/hosts/<hostname>, and places individual timestamped log files
into that directory.
This can be a problem the first time the scheduler runs after upgrading.
To work around that, we\'ll look for a file at the path where the
directory should be, and if we find one, we\'ll automatically convert it
to a directory containing the old logfile.'

def _convert_old_host_log(self, log_path):

    temp_dir = tempfile.mkdtemp(suffix='.convert_host_log')
    base_name = os.path.basename(log_path)
    temp_path = os.path.join(temp_dir, base_name)
    os.rename(log_path, temp_path)
    os.mkdir(log_path)
    os.rename(temp_path, os.path.join(log_path, 'old_log'))
    os.rmdir(temp_dir)
