LMC: change the name of the andconda log files

anaconda and lmc both have a program.log so we are losing one. This
patch adds a anaconda- prefix to the logfile for files in the
anaconda directory so that we get all files and know which files are
from lmc and which are from anaconda.

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
This commit is contained in:
Dennis Gilmore 2016-05-24 17:04:37 -05:00 committed by Mike McLean
parent 15bc2f1cee
commit 6f53e4f1aa

View file

@ -3062,6 +3062,11 @@ class LiveMediaTask(ImageTask):
filepath = os.path.join(logdir, filename)
if os.stat(filepath).st_size == 0:
continue
# avoid file duplication between directories by prefixing anaconda logs
if logdir.endswith('anaconda'):
self.uploadFile(os.path.join(filepath), remoteName='anaconda-%s' % filename)
continue
self.uploadFile(os.path.join(filepath))
if rv: