@@ -386,23 +386,23 @@ def pod_name(size=5, chars=string.ascii_lowercase + string.digits):
386386 return name
387387
388388 def describe_pod (self , pod_name ):
389- def get_commands_and_args (pod , container_name ):
390- commands , args = [], []
389+ def get_command_and_args (pod , container_name ):
390+ command , args = [], []
391391 for container in pod ["spec" ]["containers" ]:
392392 if container ["name" ] == container_name :
393393 args = container .get ("args" , [])
394- commands = container .get ("commands " , [])
394+ command = container .get ("command " , [])
395395 break
396- return commands , args
396+ return command , args
397397 result = []
398398 try :
399399 pod = self .scheduler ().pod .get (self .id , pod_name ).json ()
400400 for status in pod ["status" ]["containerStatuses" ]:
401- commands , args = get_commands_and_args (pod , status ["name" ])
401+ command , args = get_command_and_args (pod , status ["name" ])
402402 result .append ({
403403 "container" : status ["name" ],
404404 "image" : status ["image" ],
405- "commands " : commands ,
405+ "command " : command ,
406406 "args" : args ,
407407 "state" : status ["state" ],
408408 "lastState" : status ["lastState" ],
0 commit comments