From 7a91f8c03b2f177568dd02436df0bd908d8bb293 Mon Sep 17 00:00:00 2001 From: Alex Shatov Date: Fri, 11 May 2018 10:32:41 -0400 Subject: 2.1.5 - fixed getting node-instances from cfy 4.x - added _size=1000 to params on getting node-instances from cloudify = cloudify 4.x does not like to have the _offset=0 without _size param cfy assumes that _size=0 and returns no items. = that was working fine in cloudify 3.4 = the max _size is now only 1000 in 4.x versus 10,000 in 3.4 - external version 2.1.5, internal version 4.4.5 - unit test code coverage Statements : 83.99% ( 939/1118 ) Branches : 62.75% ( 320/510 ) Functions : 81.15% ( 155/191 ) Lines : 84.13% ( 928/1103 ) Change-Id: I4c47522c49acc028841c5c08787995f33e7ef0e3 Signed-off-by: Alex Shatov Issue-ID: DCAEGEN2-500 --- lib/cloudify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/cloudify.js') diff --git a/lib/cloudify.js b/lib/cloudify.js index 90e7dff..0832dc7 100644 --- a/lib/cloudify.js +++ b/lib/cloudify.js @@ -352,7 +352,7 @@ exports.getNodeInstances = function (mainReq, on_next_node_instances, offset) { offset = offset || 0; var reqOptions = { method : "GET", - uri : cfyAPI + "/node-instances?_include=id,deployment_id,runtime_properties&_offset=" + offset + uri : cfyAPI + "/node-instances?_include=id,deployment_id,runtime_properties&_size=1000&_offset=" + offset }; addAuthToOptions(reqOptions); -- cgit 1.2.3-korg