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

bug: the environments api URL is returning a bad list of matching environments to environments.rb #142

Open
erikhSSI opened this issue Feb 5, 2024 · 1 comment

Comments

@erikhSSI
Copy link

erikhSSI commented Feb 5, 2024

I have limited an admin user in our cloud account to see only 2 environments in a single application.

what i expected

ey-core environments should be returning

xxxxx_clone
xxxxx_clone2

what happened

but instead it returns a dupe!

ID        | Name                                       | Account
----------|--------------------------------------------|---------------------------------------------------
nnnn      | xxxxx_clone2                               | yyyy
nnnn      | xxxxx_clone2                               | yyyy

what is causing it

I've have tracked it down to the API result being bad coming from:

https://api.engineyard.com/accounts/xxxxxxxxxxxx/environments

since the code in /ey-core-3.6.6/lib/ey-core/cli/environments.rb seems ok

Maybe there is a regular expression error or ???

@erikhSSI
Copy link
Author

erikhSSI commented Feb 5, 2024

Actually, I take that back, I called the api URL from curl and the results look OK (returning 2 different environments), so it must be a bug in the ey-core ruby code

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

1 participant