From 4bc79a746ad6f1f9841b6f637d45f69155babf69 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Sat, 4 Apr 2015 16:26:05 -0400 Subject: [PATCH] more fine tunnign on verbosity --- v2/ansible/executor/playbook_executor.py | 6 ++++-- v2/ansible/plugins/connections/__init__.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/v2/ansible/executor/playbook_executor.py b/v2/ansible/executor/playbook_executor.py index ad9570963aa..9f02cddddb6 100644 --- a/v2/ansible/executor/playbook_executor.py +++ b/v2/ansible/executor/playbook_executor.py @@ -70,7 +70,10 @@ class PlaybookExecutor: entry['plays'] = [] i = 1 - for play in pb.get_plays(): + plays = pb.get_plays() + self._display.vv('%d plays in %s' % (len(plays), playbook_path)) + + for play in plays: self._inventory.remove_restriction() # Create a temporary copy of the play here, so we can run post_validate @@ -127,7 +130,6 @@ class PlaybookExecutor: if entry: entrylist.append(entry) # per playbook - self._display.vvvvv('%d plays in %s' % (i, playbook_path)) if entrylist: return entrylist diff --git a/v2/ansible/plugins/connections/__init__.py b/v2/ansible/plugins/connections/__init__.py index 11015d74313..74ff693a331 100644 --- a/v2/ansible/plugins/connections/__init__.py +++ b/v2/ansible/plugins/connections/__init__.py @@ -39,7 +39,7 @@ class ConnectionBase: def __init__(self, connection_info, *args, **kwargs): self._connection_info = connection_info - self._display = Display(connection_info) + self._display = Display(verbosity=connection_info.verbosity) def _become_method_supported(self, become_method):