-
Bug
-
Resolution: Done
-
Major
-
0.25, 7.9
-
None
-
-
False
-
False
-
-
5
In the PR#359 we introduced a way of archiving the log file if multiple runs are executed. The feature is working as expected, but, instead of moving the previous log file to the archive folder and initializing a new log file, we are moving them and appending the log to the old convert2rhel.log file.
This behavior is wrong, since the idea of this feature is archive old logs and create new files in every single run.{}
Acceptance criteria
- The log file should be moved to the archive folder instead of being copied over.
Ideas
- We could change the method from shutil.copy(...) to shutil.move(...). (https://docs.python.org/2.7/library/shutil.html#shutil.move)
- We could only delete the file after copying the file to the archive and that would solve the problem too.