Skip to content

Commit 5457d32

Browse files
committed
fix: api_client.py
1 parent eee8f5f commit 5457d32

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

kubernetes/client/api_client.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,14 @@ def deserialize(self, response, response_type):
261261
except ValueError:
262262
data = response.data
263263

264-
return self.__deserialize(data, response_type)
264+
result = self.__deserialize(data, response_type)
265+
if response_type == "V1PodList":
266+
for pod in result.items:
267+
if pod.metadata and pod.metadata.deletion_timestamp:
268+
pod.status.phase = "Terminating"
269+
270+
print(result)
271+
return result
265272

266273
def __deserialize(self, data, klass):
267274
"""Deserializes dict, list, str into an object.

0 commit comments

Comments
 (0)