Parcourir la source

fix portforward pods index value

Mohammed Nafees il y a 4 ans
Parent
commit
ea9c6b9f2e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      cli/cmd/portforward.go

+ 1 - 1
cli/cmd/portforward.go

@@ -140,7 +140,7 @@ func portForward(user *types.GetAuthenticatedUserResponse, client *api.Client, a
 			return err
 			return err
 		}
 		}
 
 
-		pod = pods[podIdx]
+		pod = pods[podIdx-1]
 	} else {
 	} else {
 		pod = pods[0]
 		pod = pods[0]
 	}
 	}