Commit a00c756c authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

PathComp component - Frontend:

- Corrected KDisjointPath response generation
parent 1e1de1fc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -194,9 +194,9 @@ class KDisjointPathAlgorithm(_Algorithm):
                no_path_issue = response.get('noPath', {}).get('issue')
                if no_path_issue is not None: continue

                path_endpoints = response['path'][0]['devices']
                path_endpoints = response['path'][0]
                json_reply_service.append(path_endpoints)
                algorithm.link_list = self.remove_traversed_links(algorithm.link_list, path_endpoints)
                algorithm.link_list = self.remove_traversed_links(algorithm.link_list, path_endpoints['devices'])

        self.json_reply = dict()
        response_list = self.json_reply.setdefault('response-list', [])