From: Felipe Vicens Date: Thu, 6 Jun 2019 00:26:02 +0000 (+0200) Subject: Fix bug #677 osm nsi-op-list name' and 'osm nsi-op-show id' returns null X-Git-Tag: v6.0.0~3 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F19%2F7619%2F1;p=osm%2FLW-UI.git Fix bug #677 osm nsi-op-list name' and 'osm nsi-op-show id' returns null Change-Id: If7c330bef21613916ffd3bdd12b1962f8f7877e8 Signed-off-by: Felipe Vicens --- diff --git a/entrypoint.sh b/entrypoint.sh old mode 100644 new mode 100755 diff --git a/instancehandler/template/instance_operations_list.html b/instancehandler/template/instance_operations_list.html index 1568717..3f54f1f 100644 --- a/instancehandler/template/instance_operations_list.html +++ b/instancehandler/template/instance_operations_list.html @@ -153,7 +153,7 @@ "render": function (data, type, row) { return '
\n' + ' \n' + @@ -178,4 +178,4 @@ {% block footer %} {% include "footer.html" %} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/lib/osm/osmclient/clientv2.py b/lib/osm/osmclient/clientv2.py index 384eeaa..95b4b97 100644 --- a/lib/osm/osmclient/clientv2.py +++ b/lib/osm/osmclient/clientv2.py @@ -1092,7 +1092,7 @@ class Client(object): result = {'error': True, 'data': ''} headers = {"Content-Type": "application/json", "accept": "application/json", 'Authorization': 'Bearer {}'.format(token['id'])} - _url = "{0}/nsilcm/v1/nsi_lcm_op_occs/?nsInstanceId={1}".format(self._base_path, id) + _url = "{0}/nsilcm/v1/nsi_lcm_op_occs/?netsliceInstanceId={1}".format(self._base_path, id) try: r = requests.get(_url, params=None, verify=False, stream=True, headers=headers) diff --git a/static/src/instancehandler/instance_operations_list.js b/static/src/instancehandler/instance_operations_list.js index d85ebcf..5341c89 100644 --- a/static/src/instancehandler/instance_operations_list.js +++ b/static/src/instancehandler/instance_operations_list.js @@ -15,8 +15,8 @@ */ -function showOperationDetails(instance_id, operation_id) { - var url_info = '/instances/ns/'+instance_id+'/operation/' + operation_id; +function showOperationDetails(type, instance_id, operation_id) { + var url_info = '/instances/'+type+'/'+instance_id+'/operation/' + operation_id; var dialog = bootbox.dialog({ message: '
Loading...
', closeButton: true @@ -72,4 +72,4 @@ $(document).ready(function () { }, json_editor_settings); -}); \ No newline at end of file +});