Fix: fake not implemented for commands

Change-Id: I703d562b2b70310859dfc16de82af86a126dc058
This commit is contained in:
Oleksandr Liemieshko 2016-12-06 19:29:57 -08:00
parent abdb347e6b
commit d038b827f3
3 changed files with 13 additions and 3 deletions

View File

@ -4,7 +4,7 @@
%global pypi_name timmy
Name: python-%{pypi_name}
Version: 1.24.0
Version: 1.24.1
Release: 1%{?dist}~mos0
Summary: Log collector tool for OpenStack Fuel
@ -104,6 +104,12 @@ popd
%changelog
* Tue Dec 6 2016 Alexander Lemeshko <oliemieshko@mirantis.com> - 1.24.1
- Fix: fake not implemented for commands
* Tue Dec 6 2016 Alexander Lemeshko <oliemieshko@mirantis.com> - 1.24.0
- Add: function analyze
* Mon Dec 5 2016 Dmitry Sutyagin <dsutyagin@mirantis.com> - 1.23.7
- Add: collect haproxy stats

View File

@ -131,6 +131,9 @@ def parser_init(add_help=False):
action='store_true',
help=('Only collect logs, do not run commands or'
' collect files.'))
parser.add_argument('--fake',
help='Do not run commands and scripts',
action='store_true')
parser.add_argument('--fake-logs',
help='Do not collect logs, only calculate size.',
action='store_true')
@ -320,7 +323,8 @@ def main(argv=None):
pretty_run(args.quiet, 'Uploading files', nm.put_files)
if nm.has(Node.ckey, Node.skey):
pretty_run(args.quiet, 'Executing commands and scripts',
nm.run_commands, args=(args.maxthreads,))
nm.run_commands, kwargs={'maxthreads': args.maxthreads,
'fake': args.fake})
if conf['analyze']:
pretty_run(args.quiet, 'Analyzing outputs', analyze,
args=[nm])

View File

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