Fix bug preventing wait_condition from being respected when using apply (#61493)

This commit is contained in:
Fabian von Feilitzsch 2019-09-05 08:49:30 -04:00 committed by Will Thames
parent 223dab99ea
commit f406b8b4c4

View file

@ -300,7 +300,7 @@ class KubernetesRawModule(KubernetesAnsibleModule):
success = True
result['result'] = k8s_obj
if wait:
success, result['result'], result['duration'] = self.wait(resource, definition, wait_sleep, wait_timeout)
success, result['result'], result['duration'] = self.wait(resource, definition, wait_sleep, wait_timeout, condition=wait_condition)
if existing:
existing = existing.to_dict()
else: