Piotr Kliczewski has uploaded a new change for review. Change subject: Revert "json-rpc: fix the Host.getVMList return value" ......................................................................
Revert "json-rpc: fix the Host.getVMList return value" This reverts commit e7ebfdeb7b036ce10f25a3b26657e6414644fc55. Change-Id: I367075353f4f3c3a5b9a0716a48a1ae3976669a1 Signed-off-by: pkliczewski <[email protected]> Bug-Url: https://bugzilla.redhat.com/1196327 --- M vdsm/rpc/Bridge.py 1 file changed, 8 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/32/38432/1 diff --git a/vdsm/rpc/Bridge.py b/vdsm/rpc/Bridge.py index 1d44b90..6ec7326 100644 --- a/vdsm/rpc/Bridge.py +++ b/vdsm/rpc/Bridge.py @@ -339,6 +339,13 @@ return API.Global().getVMList(True, vmList) +def Host_getVMList_Ret(ret): + """ + Just return a list of VM UUIDs + """ + return [v['vmId'] for v in ret['vmList']] + + def StoragePool_getInfo_Ret(ret): """ The result contains two data structures which must be merged @@ -412,7 +419,7 @@ 'Host_hostdevChangeNumvfs': {}, 'Host_startMonitoringDomain': {}, 'Host_stopMonitoringDomain': {}, - 'Host_getVMList': {'call': Host_getVMList_Call, 'ret': 'vmList'}, + 'Host_getVMList': {'call': Host_getVMList_Call, 'ret': Host_getVMList_Ret}, 'Host_getVMFullList': {'call': Host_getVMFullList_Call, 'ret': 'vmList'}, 'Host_getAllVmStats': {'ret': 'statsList'}, 'Host_setupNetworks': {'ret': 'status'}, -- To view, visit https://gerrit.ovirt.org/38432 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I367075353f4f3c3a5b9a0716a48a1ae3976669a1 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Piotr Kliczewski <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
