message: Set the version to response.
diff: @@ -126,6 +126,9 @@ nebula::cpp2::ErrorCode ListHostsProcessor::allHostsWithStatus(cpp2::HostRole ro
  item.set_role(info.role_);
  item.set_git_info_sha(info.gitInfoSha_);
  + if (info.version_.has_value()) {
  + item.set_version(info.version_.value());
  + }
  if (now - info.lastHBTimeInMilliSec_ < FLAGS_removed_threshold_sec * 1000) {
  // If meta didn't receive heartbeat with 2 periods, regard hosts as offline.
  // Same as ActiveHostsMan::getActiveHosts
  @@ -139,9 +142,6 @@ nebula::cpp2::ErrorCode ListHostsProcessor::allHostsWithStatus(cpp2::HostRole ro
  } else {
  removeHostsKey.emplace_back(iter->key());
  }
  - if (info.version_.has_value()) {
  - item.set_version(info.version_.value());
  - }
  iter->next();
  }
  