Merge pull request #4404 from sfc-gh-ajbeamon/fix-region-reporting
Fix bug where regions reported extra satellites
This commit is contained in:
commit
259e8ce69e
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue