Feature #5051

Semanticly clean up responses

Added by Stavros Sachtouris almost 7 years ago.

Status:New Start date:02/10/2014
Priority:Medium Due date:02/14/2014
Assignee:- % Done:

0%

Category:- Spent time: -
Target version:- Estimated time:36.00 hours

Description

This feature affects almost all commands that perform HTTP requests and show their results.
Prune the tree of results so that it is as close as possible to the semantics of the command.
For example, up to the current version:

$ kamaki quota list
system:
    cyclades.disk:
        usage: 0B
        limit: 100GiB
        pending: 0B
    cyclades.vm:
        usage: 0
        limit: 2
        pending: 1
    ...

The "system" key is part of the response, but does not add anything semanticaly. If anything, it creates
confusion. The following response is more apropriate:

cyclades.disk:
    usage: 0B
    limit: 100GiB
    pending: 0B
cyclades.vm:
    usage: 0
    limit: 2
    pending: 1
...

Related issues

related to ./kamaki - Feature #4811: Add match and filter arguments in listing commands (and o... New 12/23/2013 02/07/2014

Associated revisions

Revision c75be81a
Added by Stavros Sachtouris almost 7 years ago

Pretty server info, better errors in set firewall

Refs: #5051

Revision 4c33b869
Added by Stavros Sachtouris almost 7 years ago

Remove obsolete arguyments from server_info

Refs: #5051

Also available in: Atom PDF