engineyard / engineyard/core-client-rb

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

Open
#142 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
4
Forks
19
PR merge metrics
No merged PRs in 30d

Description

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 ???

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.