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:
parent
32fcc5ecca
commit
b3208c9004
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user