Fix: IOError if no-clean + outdir missing
Change-Id: I93df3bcf8834939a84668ea6f904e961922425b4 (cherry picked from commit ba213af116c016c9fc8e50751f1638ed7cf94b50)
This commit is contained in:
parent
ab5d6057f8
commit
8b24923e61
@ -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
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
# under the License.
|
||||
|
||||
project_name = 'timmy'
|
||||
version = '1.25.0'
|
||||
version = '1.25.1'
|
||||
|
||||
if __name__ == '__main__':
|
||||
import sys
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user