Skip to content

fix: don't drop networkVolume and networkVolumeId in pod get - #322

Open
ajpower wants to merge 1 commit into
runpod:mainfrom
ajpower:fix-network-volume
Open

fix: don't drop networkVolume and networkVolumeId in pod get#322
ajpower wants to merge 1 commit into
runpod:mainfrom
ajpower:fix-network-volume

Conversation

@ajpower

@ajpower ajpower commented Jul 31, 2026

Copy link
Copy Markdown

Summary

runpodctl pod get $pod --include-network-volume does not actually return network volume info despite passing the required params to the underlying REST API. The root cause is that the Pod struct is missing these fields, so they are discarded upon deserialization. This PR adds the missing fields and closes #291.

Testing

I created a pod nsr02fbf61si3n with a network volume attached. Without the change, runpodctl pod get nsr02fbf61si3n --include-network-volume | jq '.networkVolume' returns null. With the change, bin/runpodctl pod get nsr02fbf61si3n --include-network-volume | jq '.networkVolume' returns

{
  "dataCenterId": "EU-CZ-1",
  "id": "niq6cdm1yy",
  "name": "principal_pink_tern",
  "size": 10
}

Note that with the change, pod get always returns a networkVolumeId (if a network volume is present) whether --include-network-volume is passed or not. I believe this is the desired behaviour since the inclusion of the networkVolumeId comes for free.

Related issue

While investigating this issue, I discovered another bug: uptimeSeconds seems to always be zero. Pod nsr02fbf61si3n has an uptime of over an hour, yet runpodctl pod get nsr02fbf61si3n | jq '.uptimeSeconds' returns 0. I believe the root cause is that the GraphQL API returns

{ "uptimeSeconds": 0, "runtime": { "uptimeInSeconds": 4026 } }

but the CLI takes uptimeSeconds instead of runtime.uptimeInSeconds.

@ajpower
ajpower marked this pull request as ready for review July 31, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--include-network-volume flag is ignored by pod get

1 participant