summaryrefslogtreecommitdiffstats
path: root/lib/cloudify.js
diff options
context:
space:
mode:
authorAlex Shatov <alexs@att.com>2018-05-11 10:32:41 -0400
committerAlex Shatov <alexs@att.com>2018-05-11 10:32:41 -0400
commit7a91f8c03b2f177568dd02436df0bd908d8bb293 (patch)
tree886b5da593047a69d1098c0dc44469c76b588c83 /lib/cloudify.js
parentbfdffbbb60b0ee6cff12022bbb17bd075c1ffd51 (diff)
2.1.5 - fixed getting node-instances from cfy 4.x2.0.0-ONAPbeijing2.0.0-ONAP
- 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 <alexs@att.com> Issue-ID: DCAEGEN2-500
Diffstat (limited to 'lib/cloudify.js')
-rw-r--r--lib/cloudify.js2
1 files changed, 1 insertions, 1 deletions
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);