Browse Source

Merge "Set PROFILE_TASKS_TASK_OUTPUT_LIMIT" into stable/train

changes/91/748691/5
Zuul 2 weeks ago
committed by Gerrit Code Review
parent
commit
3a86347c84
2 changed files with 4 additions and 4 deletions
  1. +1
    -1
      tripleo_common/actions/ansible.py
  2. +3
    -3
      tripleo_common/tests/actions/test_ansible.py

+ 1
- 1
tripleo_common/actions/ansible.py View File

@@ -395,7 +395,7 @@ class AnsiblePlaybookAction(base.TripleOAction):
self.trash_output = self._kwargs_for_run.pop('trash_output', False)
self.profile_tasks = self._kwargs_for_run.pop('profile_tasks', True)
self.profile_tasks_limit = self._kwargs_for_run.pop(
'profile_tasks_limit', 0)
'profile_tasks_limit', 20)
self.blacklisted_hostnames = self._kwargs_for_run.pop(
'blacklisted_hostnames', [])
self.override_ansible_cfg = self._kwargs_for_run.pop(


+ 3
- 3
tripleo_common/tests/actions/test_ansible.py View File

@@ -115,7 +115,7 @@ class AnsiblePlaybookActionTest(base.TestCase):
'ANSIBLE_CONFIG': ansible_config_path,
'ANSIBLE_CALLBACK_WHITELIST': 'tripleo,profile_tasks',
'ANSIBLE_STDOUT_CALLBACK': 'tripleo',
'PROFILE_TASKS_TASK_OUTPUT_LIMIT': '0',
'PROFILE_TASKS_TASK_OUTPUT_LIMIT': '20',
}
python_version = sys.version_info.major
ansible_playbook_cmd = 'ansible-playbook-{}'.format(python_version)
@@ -155,7 +155,7 @@ class AnsiblePlaybookActionTest(base.TestCase):
'ANSIBLE_CONFIG': ansible_config_path,
'ANSIBLE_CALLBACK_WHITELIST': 'tripleo,profile_tasks',
'ANSIBLE_STDOUT_CALLBACK': 'tripleo',
'PROFILE_TASKS_TASK_OUTPUT_LIMIT': '0',
'PROFILE_TASKS_TASK_OUTPUT_LIMIT': '20',
}
python_version = sys.version_info.major
ansible_playbook_cmd = 'ansible-playbook-{}'.format(python_version)
@@ -195,7 +195,7 @@ class AnsiblePlaybookActionTest(base.TestCase):
'ANSIBLE_CONFIG': ansible_config_path,
'ANSIBLE_CALLBACK_WHITELIST': 'tripleo,profile_tasks',
'ANSIBLE_STDOUT_CALLBACK': 'tripleo',
'PROFILE_TASKS_TASK_OUTPUT_LIMIT': '0',
'PROFILE_TASKS_TASK_OUTPUT_LIMIT': '20',
}
python_version = sys.version_info.major
ansible_playbook_cmd = 'ansible-playbook-{}'.format(python_version)


Loading…
Cancel
Save