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

The omc use command shows the wrong environment #167

Closed
capriott opened this issue Jun 6, 2024 · 2 comments
Closed

The omc use command shows the wrong environment #167

capriott opened this issue Jun 6, 2024 · 2 comments

Comments

@capriott
Copy link

capriott commented Jun 6, 2024

Hi Gabriel,

The omc use command shows the wrong environment:

$ omc use -i QSNv3pMU
Must-Gather  : /path_to_mg1
Project      : default
ApiServerURL : https://api.cluster1.org:6443
Platform     : None

$ omc use -i QSNv3pMU
Must-Gather  : /path_to_mg2
Project      : default
ApiServerURL : https://api.cluster2.org:6443
Platform     : None

Thank you
Andrea Capriotti

@cchen666
Copy link
Contributor

cchen666 commented Jun 7, 2024

Hi @capriott

Recently I made some changes to the "use" subcommand and added some checks to the omc.json's id. I am not sure whether my PR involves some unexpected behavior. I think in your ~/.omc/omc.json there are two contexts with the exactly same id. If you could let me know how you make different contexts have the same id, that would be very helpful for me to fix this problem. I checked my ~/.omc/omc.json and I couldn't find the duplicate ids for different contexts...

$ cat ~/.omc/omc.json | jq '.contexts[] | .id'
"pWi8PDIn"
"xy6gs5I0"
"dewLQC31"
"RF7Z8Qsv"

Thanks a lot!

@gmeghnag
Copy link
Owner

fixed with #172

This issue was closed.
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

No branches or pull requests

3 participants