only use updated pod spec if query was successful, otherwise use cached version - avoids using incomplete pod spec on refresh errors
go fmt