Fix: IOError if no-clean + outdir missing

Change-Id: I93df3bcf8834939a84668ea6f904e961922425b4
(cherry picked from commit ba213af116c016c9fc8e50751f1638ed7cf94b50)
This commit is contained in:
Dmitry Sutyagin 2016-12-09 19:10:53 -08:00 committed by Aleksandr Dobdin
parent ab5d6057f8
commit 8b24923e61
3 changed files with 6 additions and 3 deletions

View File

@ -4,7 +4,7 @@
%global pypi_name timmy
Name: python-%{pypi_name}
Version: 1.25.0
Version: 1.25.1
Release: 1%{?dist}~mos0
Summary: Log collector tool for OpenStack Fuel
@ -107,6 +107,9 @@ popd
%changelog
* Fri Dec 9 2016 Dmitry Sutyagin <dsutyagin@mirantis.com> - 1.25.1
Fix: IOError if no-clean + outdir missing
* Fri Dec 9 2016 Alexander Lemeshko <oliemieshko@mirantis.com> - 1.25.0
- Add: ability to analyze old results

View File

@ -16,7 +16,7 @@
# under the License.
project_name = 'timmy'
version = '1.25.0'
version = '1.25.1'
if __name__ == '__main__':
import sys

View File

@ -548,7 +548,7 @@ class NodeManager(object):
conf['archive_dir'] += timestamp_str
if conf['clean']:
shutil.rmtree(conf['outdir'], ignore_errors=True)
tools.mdir(conf['outdir'])
tools.mdir(conf['outdir'])
version_filename = '%s_version.txt' % project_name
version_filepath = os.path.join(conf['outdir'], version_filename)
with open(version_filepath, 'a') as f: