summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 383f8c0)
raw | patch | inline | side by side (parent: 383f8c0)
author | Amit Gupta <amit.gupta221@gmail.com> | |
Wed, 13 Jan 2010 11:50:04 +0000 (12:50 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Wed, 13 Jan 2010 11:50:04 +0000 (12:50 +0100) |
src/curl_xml.c | patch | blob | history |
diff --git a/src/curl_xml.c b/src/curl_xml.c
index cc88c93480984dcfce343a412526c1546ae7965d..0b5d8096c94223184970ae7af9ce6023e7da57b8 100644 (file)
--- a/src/curl_xml.c
+++ b/src/curl_xml.c
if ( (tmp_size == 0) && (is_table) )
{
WARNING ("curl_xml plugin: "
- "relative xpath expression for 'Instance' \"%s\" doesn't match "
+ "relative xpath expression for 'InstanceFrom' \"%s\" doesn't match "
"any of the nodes. Skipping the node.", xpath->instance);
xmlXPathFreeObject (instance_node_obj);
return (-1);
if (tmp_size > 1)
{
WARNING ("curl_xml plugin: "
- "relative xpath expression for 'Instance' \"%s\" is expected "
+ "relative xpath expression for 'InstanceFrom' \"%s\" is expected "
"to return only one text node. Skipping the node.", xpath->instance);
xmlXPathFreeObject (instance_node_obj);
return (-1);
if (total_nodes > 1 && xpath->instance == NULL)
{
ERROR ("curl_xml plugin: "
- "Instance is must in xpath block since the base xpath expression \"%s\" "
+ "InstanceFrom is must in xpath block since the base xpath expression \"%s\" "
"returned multiple results. Skipping the xpath block...", base_xpath);
return -1;
}
@@ -602,14 +602,14 @@ static int cx_config_add_values (const char *name, cx_xpath_t *xpath, /* {{{ */
if (ci->values_num < 1)
{
- WARNING ("curl_xml plugin: `Values' needs at least one argument.");
+ WARNING ("curl_xml plugin: `ValuesFrom' needs at least one argument.");
return (-1);
}
for (i = 0; i < ci->values_num; i++)
if (ci->values[i].type != OCONFIG_TYPE_STRING)
{
- WARNING ("curl_xml plugin: `Values' needs only string argument.");
+ WARNING ("curl_xml plugin: `ValuesFrom' needs only string argument.");
return (-1);
}
status = cf_util_get_string (child, &xpath->type);
else if (strcasecmp ("InstancePrefix", child->key) == 0)
status = cf_util_get_string (child, &xpath->instance_prefix);
- else if (strcasecmp ("Instance", child->key) == 0)
+ else if (strcasecmp ("InstanceFrom", child->key) == 0)
status = cf_util_get_string (child, &xpath->instance);
- else if (strcasecmp ("Values", child->key) == 0)
- status = cx_config_add_values ("Values", xpath, child);
+ else if (strcasecmp ("ValuesFrom", child->key) == 0)
+ status = cx_config_add_values ("ValuesFrom", xpath, child);
else
{
WARNING ("curl_xml plugin: Option `%s' not allowed here.", child->key);