Fix service discovery

Change-Id: I992d2b463ee425f36f3ef158df5d802d9ca7c791
This commit is contained in:
Ilya Shakhat 2019-05-14 16:48:21 +02:00
parent f531c0d97b
commit b53ee47466

@ -207,7 +207,9 @@ class AnsibleRunner(object):
any of these statuses
:return: execution result, type AnsibleExecutionRecord
"""
raise_on_statuses = raise_on_statuses or DEFAULT_ERROR_STATUSES
if raise_on_statuses is None:
raise_on_statuses = DEFAULT_ERROR_STATUSES
LOG.debug('Executing task: %s on hosts: %s with serial: %s',
task, hosts, self.serial)