"null" when releasing an IP address is confusing

Bug #1383668 reported by Graham Binns
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Low
Graham Binns

Bug Description

When you release an IP address you see something like this:

graham@dodger:~/build-area⟫ maas maas ipaddresses release ip=10.0.0.130
null

The least it could do is say "IP address released."

Tags: trivial

Related branches

Graham Binns (gmb)
Changed in maas:
status: Triaged → In Progress
Revision history for this message
Gavin Panella (allenap) wrote :

The maas CLI just prints the machine-readable output returned by the API. The CLI is a very thin wrapper around the MAAS API, and I think it's worth making it thicker, by which I mean that the translation from machine-readable to human-readable should be in the CLI. That also makes sense for another reason: the CLI has to be usable for both humans and scripts, so we need both human- and machine-readable available there.

Revision history for this message
Graham Binns (gmb) wrote : Re: [Bug 1383668] Re: "null" when releasing an IP address is confusing

On 21 October 2014 12:48, Gavin Panella <email address hidden> wrote:
> The maas CLI just prints the machine-readable output returned by the
> API. The CLI is a very thin wrapper around the MAAS API, and I think
> it's worth making it thicker, by which I mean that the translation from
> machine-readable to human-readable should be in the CLI. That also makes
> sense for another reason: the CLI has to be usable for both humans and
> scripts, so we need both human- and machine-readable available there.

Agreed. In this case, I've just made the offending method return a
meaningful response. The CLI needs a proper bundle of loving,
preferably in the next (i.e. Vivid) cycle.

Changed in maas:
status: In Progress → Fix Committed
Christian Reis (kiko)
Changed in maas:
milestone: next → 1.7.1
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.