It's allowed by the newer version
Change-Id: Ief4cb2f0cce8da8af6e0bee275772f0940f56d5a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit
6493a5acf8a3724f7c00fc971542d25b42a36e4c)
func=self.corev1.list_namespaced_pod,
namespace=self.namespace, timeout_seconds=self.watch_timeout):
if event["object"].metadata.name == self.test_container_name:
- if (event["object"].status.phase == 'Succeeded'
- or event["object"].status.phase == 'Error'):
+ if (event["object"].status.phase == 'Succeeded' or
+ event["object"].status.phase == 'Error'):
watch_deployment.stop()
api_response = self.corev1.read_namespaced_pod_log(
name=self.test_container_name, namespace=self.namespace)