maas-cli stdout is not json formated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maas (Ubuntu) |
Triaged
|
High
|
Unassigned |
Bug Description
previously, 'maas-cli MAASNAME nodes list' would produce json formated output
to stdout. Now, it produces invalid json. This is because its writing a
deprecation warning to stdout that should go to stderr.
$ maas-cli list 2>/dev/null
WARNING: The maas-cli command is deprecated and will be removed in a future
version. From now on please use 'maas' instead.
admin http://
smoser http://
That is fixed with:
maas-cli admin nodes list | sed '1d; 2d' | python -c 'import json, sys; json.load(
essentially your deprecation warning caused a regression.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: maas-cli 1.5+bzr1951-
ProcVersionSign
Uname: Linux 3.13.0-8-generic x86_64
ApportVersion: 2.13.2-0ubuntu5
Architecture: amd64
Date: Wed Feb 19 18:46:16 2014
PackageArchitec
SourcePackage: maas
UpgradeStatus: Upgraded to trusty on 2013-05-22 (273 days ago)
Related branches
- Julian Edwards (community): Approve
-
Diff: 27 lines (+2/-3)2 files modifieddebian/changelog (+2/-2)
debian/control (+0/-1)
Looks like this is coming from packaging, in debian/extras/maas.