Merge "Configure ansible's verbosity according to command's verbosity"

This commit is contained in:
Zuul 2018-01-19 19:54:21 +00:00 committed by Gerrit Code Review
commit 11b659aea0
2 changed files with 6 additions and 3 deletions

View File

@ -967,7 +967,8 @@ class DeployOvercloud(command.Command):
parsed_args.deployed_server,
parsed_args.overcloud_ssh_user,
parsed_args.overcloud_ssh_key,
parsed_args.output_dir)
parsed_args.output_dir,
verbosity=self.app_args.verbose_level)
# Force fetching of attributes
stack.get()

View File

@ -97,7 +97,7 @@ def overcloudrc(workflow_client, **input_):
def config_download(log, clients, stack, templates, deployed_server,
ssh_user, ssh_key, output_dir):
ssh_user, ssh_key, output_dir, verbosity=1):
role_net_hostname_map = utils.get_role_net_hostname_map(stack)
hostnames = []
for role in role_net_hostname_map:
@ -139,7 +139,9 @@ def config_download(log, clients, stack, templates, deployed_server,
workflow_client = clients.workflow_engine
tripleoclients = clients.tripleoclient
workflow_input = {}
workflow_input = {
'verbosity': verbosity
}
if output_dir:
workflow_input.update(dict(work_dir=output_dir))