Skip to content

Commit

Permalink
Merge pull request #685 from ckpaliwal/issue-6021
Browse files Browse the repository at this point in the history
added condition for migrated component to return os style urls
  • Loading branch information
ckpaliwal authored Apr 9, 2024
2 parents 1c6befd + 8d68913 commit e8ffc51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/athena/libs/component_lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -1679,7 +1679,7 @@ module.exports = function (logger, ev, t) {
if (comp_doc) {

// if its been migrated use the legacy routes
if (comp_doc.migrated_from === ev.STR.LOCATION_IBP_SAAS) {
if (comp_doc.migrated_from === ev.STR.LOCATION_IBP_SAAS && comp_doc.preferred_url !== ev.STR.OPEN_SOURCE_STYLE) {
if (comp_doc.type === ev.STR.CA && comp_doc.api_url_saas) {
return comp_doc.api_url_saas + '/cainfo'; // CA's use this route
} else if (comp_doc.operations_url_saas && (comp_doc.type === ev.STR.ORDERER || comp_doc.type === ev.STR.PEER)) {
Expand Down

0 comments on commit e8ffc51

Please sign in to comment.