File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -341,7 +341,7 @@ func (s *sPodGuestInstance) getStatus(ctx context.Context, defaultStatus string)
341341 if s .IsRunning () {
342342 status = computeapi .VM_RUNNING
343343 }
344- for _ , c := range s .containers {
344+ for _ , c := range s .GetContainers () {
345345 cStatus , cs , err := s .getContainerStatus (ctx , c .Id )
346346 if err != nil {
347347 log .Errorf ("get container %s status of pod %s" , c .Id , s .Id )
@@ -372,7 +372,7 @@ func (s *sPodGuestInstance) GetUploadStatus(ctx context.Context, reason string)
372372 }*/
373373 // sync container's status
374374 cStatuss := make (map [string ]* computeapi.ContainerPerformStatusInput )
375- for _ , c := range s .containers {
375+ for _ , c := range s .GetContainers () {
376376 cStatus , cs , err := s .getContainerStatus (ctx , c .Id )
377377 if err != nil {
378378 log .Errorf ("get container %s status of pod %s" , c .Id , s .Id )
You can’t perform that action at this time.
0 commit comments