From c6d7c6046ff6add4a12d2356d5124416852b8580 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Wed, 24 Jun 2015 14:19:03 +0200 Subject: [PATCH] feature #3782: Make IMAGE attribute mandatory --- src/image/Image.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/image/Image.cc b/src/image/Image.cc index 2ff499e3b1..d5712ed961 100644 --- a/src/image/Image.cc +++ b/src/image/Image.cc @@ -411,7 +411,7 @@ int Image::from_xml(const string& xml) rc += xpath(cloning_ops, "/IMAGE/CLONING_OPS", -1); rc += xpath(cloning_id, "/IMAGE/CLONING_ID", -1); - xpath(target_snapshot, "/IMAGE/TARGET_SNAPSHOT", -1); + rc += xpath(target_snapshot, "/IMAGE/TARGET_SNAPSHOT", -1); rc += xpath(ds_id, "/IMAGE/DATASTORE_ID", -1); rc += xpath(ds_name, "/IMAGE/DATASTORE", "not_found");