[Patch 2/3] tabled: use correct name for zone attribute

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We're such a young project and we have legacy arrangements already.
In particular what's used to be called a "building" is now a "zone",
for the benefit of users running their clouds out of missile silos,
huts, tents, vehicles, etc.

Jokes aside, the patch makes tabled to use the correct name that
corresponds to what Chunk publishes.

Signed-off-by: Pete Zaitcev <zaitcev@xxxxxxxxxx>

diff --git a/server/storparse.c b/server/storparse.c
index eb40dcd..c5dd3b1 100644
--- a/server/storparse.c
+++ b/server/storparse.c
@@ -214,7 +214,7 @@ static void cfg_elm_end (GMarkupParseContext *context,
 		cc->text = NULL;
 	}
 
-	else if (!strcmp(element_name, "Zone")) {
+	else if (!strcmp(element_name, "Building")) {
 		if (!cc->text)
 			return;
 		if (cc->text[0] == '-')
@@ -225,7 +225,7 @@ static void cfg_elm_end (GMarkupParseContext *context,
 			cc->loc.zone = cc->text;
 		} else {
 			applog(LOG_WARNING,
-			       "%s: Zone not in Geo", cc->fname);
+			       "%s: Building not in Geo", cc->fname);
 			free(cc->text);
 		}
 		cc->text = NULL;
--
To unsubscribe from this list: send the line "unsubscribe hail-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Fedora Clound]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux