Fix readiness-check exception 21/31721/1
authorBorislavG <Borislav.Glozman@amdocs.com>
Wed, 14 Feb 2018 13:23:51 +0000 (15:23 +0200)
committerBorislavG <Borislav.Glozman@amdocs.com>
Wed, 14 Feb 2018 13:26:13 +0000 (15:26 +0200)
commit07dc7db266ecfb88a783a94fac5c54e2092bda53
tree6068461f3e556fd809eaa8f308787a028f1918a0
parent58ba9e800fdd7024f43a3e5195dc5275ce3d5b7e
Fix readiness-check exception

The problem is that the script tried to
iterate on statuses of pod containers.
when some pod is in state "pending" or
some other case when there is no status,
the statuses is None.
Therefore python throws exception when trying to iterate None,
which is non-iterable.
Issue-ID: OOM-514
Signed-off-by: BorislavG <Borislav.Glozman@amdocs.com>
Change-Id: If57b8a632a83489fddb12373e4047396f5fa08a3
kubernetes/readiness/docker/init/ready.py