Skip to content

Commit

Permalink
progresses rockcarver/frodo-cli#213 - Cannot use unique substring for…
Browse files Browse the repository at this point in the history
… commands, must use AM URL
  • Loading branch information
vscheuber committed Mar 23, 2023
1 parent 8ab0072 commit f7ec82f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- rockcarver/frodo-cli#213: More debug logging for connection profile lookup by a unique substring. Use --debug to see the additional output. This is not yet a solution for rockcarver/frodo-cli#213 but should help identify the root cause.

## [0.18.8] - 2023-02-17

### Added
Expand Down
6 changes: 6 additions & 0 deletions src/ops/ConnectionProfileOps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,13 @@ function findConnectionProfiles(
): SecureConnectionProfileInterface[] {
const profiles: SecureConnectionProfileInterface[] = [];
for (const tenant in connectionProfiles) {
debugMessage(
`ConnectionProfileOps.findConnectionProfiles: tenant=${tenant}`
);
if (tenant.includes(host)) {
debugMessage(
`ConnectionProfileOps.findConnectionProfiles: '${host}' identifies '${tenant}', including in result set`
);
const foundProfile = { ...connectionProfiles[tenant] };
foundProfile.tenant = tenant;
profiles.push(foundProfile);
Expand Down

0 comments on commit f7ec82f

Please sign in to comment.