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

Update XSD and Lock calls return value (#2894)

This commit is contained in:
Christian González 2019-02-05 16:15:32 +01:00 committed by Ruben S. Montero
parent a48d00d6eb
commit 4b412684ec
2 changed files with 11 additions and 8 deletions

View File

@ -27,15 +27,10 @@
</xs:element>
<xs:element name="LAST_POLL" type="xs:integer"/>
<!-- STATE values,
see http://docs.opennebula.org/stable/user/references/vm_states.html
<!-- STATE and LCM_STATE values,
see http://docs.opennebula.org/5.6/operation/references/vm_states.html#list-of-states
-->
<xs:element name="STATE" type="xs:integer"/>
<!-- LCM_STATE values, this sub-state is relevant only when STATE is
ACTIVE (4)
see http://docs.opennebula.org/stable/user/references/vm_states.html
-->
<xs:element name="LCM_STATE" type="xs:integer"/>
<xs:element name="PREV_STATE" type="xs:integer"/>
<xs:element name="PREV_LCM_STATE" type="xs:integer"/>

View File

@ -54,7 +54,15 @@ void RequestManagerLock::request_execute(xmlrpc_c::paramList const& paramList,
object->unlock();
success_response((rc == 0), att);
if (rc != 0)
{
att.resp_msg = "Error trying to lock the resource.";
failure_response(ACTION, att);
}
else
{
success_response(oid, att);
}
}
else
{