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

Return gorjun file info as array #56

Closed
Lezh1k opened this issue Nov 8, 2016 · 0 comments
Closed

Return gorjun file info as array #56

Lezh1k opened this issue Nov 8, 2016 · 0 comments
Assignees

Comments

@Lezh1k
Copy link

Lezh1k commented Nov 8, 2016

https://cdn.subut.ai:8338/kurjun/rest/raw/info?SubutaiTray this request will return JSON OBJECT if there is one SubutaiTray file on gorjun... And will return JSON ARRAY if there are more then one SubutaiTray files on gorjun.
It causes many problems. For example we need always check if we received array or single object. It's harder to maintain and write some scripts.

It's better to return array with one element if there is only one file on gorjun.

@soffokl soffokl self-assigned this Nov 8, 2016
soffokl added a commit that referenced this issue Feb 23, 2017
Even if we have only single element in list, it will be array.
soffokl added a commit that referenced this issue Feb 23, 2017
soffokl added a commit to subutai-io/agent that referenced this issue Feb 24, 2017
@soffokl soffokl closed this as completed Feb 24, 2017
liquuid pushed a commit to liquuid/agent that referenced this issue Dec 18, 2017
liquuid pushed a commit to liquuid/gorjun that referenced this issue Dec 21, 2017
Even if we have only single element in list, it will be array.
liquuid pushed a commit to liquuid/gorjun that referenced this issue Dec 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants