}
}
+ if ((value = ucl_object_find_key (obj, "max_score")) != NULL) {
+ rule->max_score = ucl_obj_todouble (value);
+ }
+ if ((value = ucl_object_find_key (obj, "read_only")) != NULL) {
+ rule->read_only = ucl_obj_toboolean (value);
+ }
+
if ((value = ucl_object_find_key (obj, "servers")) != NULL) {
if (value->type == UCL_ARRAY) {
value = value->value.av;
}
}
- if ((value = ucl_object_find_key (obj, "max_score")) != NULL) {
- rule->max_score = ucl_obj_todouble (value);
- }
- if ((value = ucl_object_find_key (obj, "read_only")) != NULL) {
- rule->read_only = ucl_obj_toboolean (value);
- }
-
return 0;
}