summaryrefslogtreecommitdiff
path: root/lib/format_text
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2016-09-21 14:59:14 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2016-09-21 18:18:15 +0200
commitf1cad4c7103ac0edc0b724217b50d062326deb43 (patch)
tree9565240d993f008bab183b2c235fc8b98a4318e1 /lib/format_text
parent045772aa30ba1c5ab9dff730ce25ca6346c7150a (diff)
downloadlvm2-f1cad4c7103ac0edc0b724217b50d062326deb43.tar.gz
config: use config_tree_from_string_without_dup_node_check throughout code to construct metadata trees
Diffstat (limited to 'lib/format_text')
-rw-r--r--lib/format_text/export.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/format_text/export.c b/lib/format_text/export.c
index 810c93205..1ecc362b9 100644
--- a/lib/format_text/export.c
+++ b/lib/format_text/export.c
@@ -22,6 +22,7 @@
#include "text_export.h"
#include "lvm-version.h"
#include "toolcontext.h"
+#include "config-util.h"
#include <stdarg.h>
#include <time.h>
@@ -1077,7 +1078,7 @@ struct dm_config_tree *export_vg_to_config_tree(struct volume_group *vg)
return_NULL;
}
- if (!(vg_cft = dm_config_from_string(buf))) {
+ if (!(vg_cft = config_tree_from_string_without_dup_node_check(buf))) {
log_error("Error parsing metadata for VG %s.", vg->name);
dm_free(buf);
return_NULL;