File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1117,7 +1117,7 @@ function listViewDataProvider(args, data) {
11171117 } ) ;
11181118}
11191119
1120- //used by infrastruct page and network page
1120+ //used by infrastructure page and network page
11211121var addExtraPropertiesToGuestNetworkObject = function ( jsonObj ) {
11221122 jsonObj . networkdomaintext = jsonObj . networkdomain ;
11231123 jsonObj . networkofferingidText = jsonObj . networkofferingid ;
@@ -1139,6 +1139,13 @@ var addExtraPropertiesToGuestNetworkObject = function(jsonObj) {
11391139 }
11401140}
11411141
1142+ //used by infrastructure page
1143+ var addExtraPropertiesToUcsBladeObject = function ( jsonObj ) {
1144+ var array1 = jsonObj . bladedn . split ( '/' ) ;
1145+ jsonObj . chassis = array1 [ 1 ] ;
1146+ jsonObj . bladeid = array1 [ 2 ] ;
1147+ }
1148+
11421149//find service object in network object
11431150
11441151 function ipFindNetworkServiceByName ( pName , networkObj ) {
Original file line number Diff line number Diff line change @@ -13833,15 +13833,13 @@
1383313833 */
1383413834 //for testing only (end)
1383513835
13836- var data = json.listucsbladeresponse.ucsblade ? json.listucsbladeresponse.ucsblade : [];
13837- for (var i = 0; i < data.length; i++) {
13838- var array1 = data[i].bladedn.split('/');
13839- data[i].chassis = array1[1];
13840- data[i].bladeid = array1[2];
13836+ var items = json.listucsbladeresponse.ucsblade ? json.listucsbladeresponse.ucsblade : [];
13837+ for (var i = 0; i < items.length; i++) {
13838+ addExtraPropertiesToUcsBladeObject(items[i]);
1384113839 }
1384213840 args.response.success({
1384313841 actionFilter: bladeActionfilter,
13844- data: data
13842+ data: items
1384513843 });
1384613844 }
1384713845 });
1398113979 };
1398213980 */
1398313981 //for testing only (end)
13984-
13982+
13983+ addExtraPropertiesToUcsBladeObject(json.queryasyncjobresultresponse.jobresult.ucsblade);
1398513984 return json.queryasyncjobresultresponse.jobresult.ucsblade;
1398613985 }
1398713986 }
1405214051 };
1405314052 */
1405414053 //for testing only (end)
14055-
14054+
14055+ addExtraPropertiesToUcsBladeObject(json.queryasyncjobresultresponse.jobresult.ucsblade);
1405614056 return json.queryasyncjobresultresponse.jobresult.ucsblade;
1405714057 }
1405814058 }
You can’t perform that action at this time.
0 commit comments