Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: match on loginUrl/instanceUrl of ScratchOrgInfo if username does not match #1311

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shetzel
Copy link
Contributor

@shetzel shetzel commented Jan 9, 2025

What does this PR do?

When running sf org display with a target-org that is not the scratch org admin user, the code would not match the ScratchOrgInfo SignupUser and would throw an error that the dev hub does not have a scratch org record with the provided org ID. The code now tries to match the ScratchOrgInfo.LoginUrl with the target-org's instanceUrl as an additional way to match. With this change, a user created within the scratch org can also have org details displayed when that user is the target-org username.

What issues does this PR fix or reference?

@W-17545444@

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant