Merge pull request #4404 from sfc-gh-ajbeamon/fix-region-reporting

Fix bug where regions reported extra satellites
This commit is contained in:
Evan Tschannen 2021-03-12 10:49:17 -08:00 committed by GitHub
commit 259e8ce69e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1100,9 +1100,9 @@ void printStatus(StatusObjectReader statusObj,
outputString += "\n Regions: ";
regions = statusObjConfig["regions"].get_array();
bool isPrimary = false;
std::vector<std::string> regionSatelliteDCs;
std::string regionDC;
for (StatusObjectReader region : regions) {
std::vector<std::string> regionSatelliteDCs;
for (StatusObjectReader dc : region["datacenters"].get_array()) {
if (!dc.has("satellite")) {
regionDC = dc["id"].get_str();