Fuel CLI doen't convert --fuel-version to JSON if used the option --json

Bug #1411661 reported by Dennis Dmitriev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Sebastian Kalinowski

Bug Description

Here is an example:

[root@nailgun ~]# fuel --fuel-version --json
api: '1.0'
astute_sha: 82125b0eef4e5a758fd4afa8917812e09a1f7dac
auth_required: true
build_id: 2015-01-14_22-54-45
build_number: '61'
feature_groups:
- mirantis
fuellib_sha: 89f7c94d65f75ebff01898b40aa3931bd52a8a61
fuelmain_sha: ''
nailgun_sha: bfb5ee4940555a3270362bb449fc1af4add43f20
ostf_sha: 92ad9f8e4c509c82e07ceb093b5d579205c76014
production: docker
release: '6.1'
release_versions:
  2014.2-6.0:
    VERSION:
      api: '1.0'
      astute_sha: 82125b0eef4e5a758fd4afa8917812e09a1f7dac
      build_id: 2015-01-14_22-54-45
      build_number: '61'
      feature_groups:
      - mirantis
      fuellib_sha: 89f7c94d65f75ebff01898b40aa3931bd52a8a61
      fuelmain_sha: ''
      nailgun_sha: bfb5ee4940555a3270362bb449fc1af4add43f20
      ostf_sha: 92ad9f8e4c509c82e07ceb093b5d579205c76014
      production: docker
      release: '6.1'

Expected: the same information in JSON format.

Dmitry Ilyin (idv1985)
Changed in fuel:
status: New → Confirmed
Dmitry Pyzhov (dpyzhov)
tags: added: module-client
removed: cli
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Sebastian Kalinowski (prmtl)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-fuelclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/169702

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-fuelclient (master)

Reviewed: https://review.openstack.org/169702
Committed: https://git.openstack.org/cgit/stackforge/python-fuelclient/commit/?id=150f2b559e6699d84bccb85754ff417de6472771
Submitter: Jenkins
Branch: master

commit 150f2b559e6699d84bccb85754ff417de6472771
Author: Sebastian Kalinowski <email address hidden>
Date: Wed Apr 1 13:09:12 2015 +0200

    Respect format when printing Fuel's VERSION

    * Used Serializer when printing VERSION
    * Format flags are now a mutually exclusive
    * Format is now stored in one parser attribute - before it was
      one boolean attribute per format
    * APIClient.get_fuel_version() now returns Python dict instead of
      formatted YAML
    * added 'consts' file

    Change-Id: I3861dc34aa2838712408bd715e3af48762b9fd9b
    Closes-Bug: #1411661

Changed in fuel:
status: In Progress → Fix Committed
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.