Merge "Enabled host_key_checking"
diff --git a/zuul/launcher/ansiblelaunchserver.py b/zuul/launcher/ansiblelaunchserver.py
index f4cd5b6..32fc832 100644
--- a/zuul/launcher/ansiblelaunchserver.py
+++ b/zuul/launcher/ansiblelaunchserver.py
@@ -1087,16 +1087,16 @@
timeout_var = None
for wrapper in jjb_job.get('wrappers', []):
if isinstance(wrapper, dict):
- build_timeout = wrapper.get('build-timeout', {})
+ build_timeout = wrapper.get('timeout')
if isinstance(build_timeout, dict):
- timeout_var = build_timeout.get('timeout-var', None)
+ timeout_var = build_timeout.get('timeout-var')
timeout = build_timeout.get('timeout')
- if timeout:
- timeout = timeout * 60
+ if timeout is not None:
+ timeout = int(timeout) * 60
if not timeout:
timeout = ANSIBLE_DEFAULT_TIMEOUT
if timeout_var:
- parameters[timeout_var] = timeout
+ parameters[timeout_var] = str(timeout * 1000)
with open(jobdir.playbook, 'w') as playbook:
pre_tasks = []
@@ -1305,7 +1305,7 @@
return new_components
def expandMacros(self, job):
- for component_type in ['builder', 'publisher']:
+ for component_type in ['builder', 'publisher', 'wrapper']:
component_list_type = component_type + 's'
new_components = []
for new_component in job.get(component_list_type, []):