1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

Returned -1 if have been an error when parsing the xml

* Returned -1 if have been an error when parsing the xml

* Update VirtualMachine.cc
This commit is contained in:
juanmont 2017-11-23 15:47:59 +01:00 committed by Ruben S. Montero
parent 32fcc5ecca
commit b3208c9004

View File

@ -2019,7 +2019,12 @@ int VirtualMachine::from_xml(const string &xml_str)
int rc = 0;
// Initialize the internal XML object
update_from_str(xml_str);
rc = update_from_str(xml_str);
if ( rc != 0 )
{
return -1;
}
// Get class base attributes
rc += xpath(oid, "/VM/ID", -1);