summaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/webapp
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2019-06-12 17:27:08 +0300
committerIttay Stern <ittay.stern@att.com>2019-06-13 07:42:15 +0300
commit71e820e32bd4f32aff4026fc55c6bb1f5891a0c2 (patch)
treece7e313ebb956af3b490b573cb8f7834206931a7 /vid-app-common/src/main/webapp
parent04b8bbe7938b4f2119b969455e7de03d4987cce1 (diff)
Find the first selected scale-out vfModule (fix)4.3.1
Issue in original code is that it used callback function(key, item), but function(item) or function(item, key) is the correct parameters order. See https://lodash.com/docs/4.17.11#find Issue-ID: VID-487 Change-Id: I6101f913f50f80c2c7afa636b5f53486088a0289 Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-app-common/src/main/webapp')
-rw-r--r--vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js
index 02242cb37..2eaa7513e 100644
--- a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js
+++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js
@@ -222,9 +222,7 @@
try{
var requestInfoData ={};
var requestParametersData ={};
- var moduleToScale = _.find(vnf.vfModules, function(key, item){
- return !item.scale;
- });
+ var moduleToScale = _.find(vnf.vfModules, {"scale": true});
if (vnf.availableVersions && vnf.availableVersions.length!=0){
requestInfoData ={