-
Notifications
You must be signed in to change notification settings - Fork 78
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
sfdx force:org:display is incorrectly showing a sandbox as a scratch org #1667
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
@azlam-abdulsalam thanks for filing the issue. Are you able to provide steps to reproduce the problem? |
@mdonnalley This happens only on one particular sandbox. So I am not sure about the reproduction steps. That being said, I figured this only happens if the devhub is authenticated before authenticating to the sandbox. If the sandbox is authenticated before production, the error disappears |
This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted. |
Hey @azlam-abdulsalam sorry for the late reply I'm not able to repro this with |
This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted. |
Summary
Running sfdx force:org:display against a particular sandbox is displaying additional details, which should only be displayed for scratch orgs. This is resulting in some plugins such as sfdmu (https://github.com/forcedotcom/SFDX-Data-Move-Utility) preventing to connect to this org due to the 'Deleted' Connection status. I am only seeing this across only one of our sandboxes
I checked the username.json file in .sfdx folder and it is incorrectly having "devHubUsername" key, this inturn is causing the org display command to classify this sandbox in the scratch org group and show expiry details etc.
Steps To Reproduce:
Expected result
Should display the org with Expiration Date and the status should be connected
I went into .sfdx folder and removed the key 'devhubUserName' from the associated json file. The result was back to normal. Looks like somehow the auth fields are receiving devhubUserName flag
Actual result
Describe what actually happened.
System Information
Version Info
Additional information
Feel free to attach a screenshot.
The text was updated successfully, but these errors were encountered: