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

openstack: switch the default json output to dictionary #752

Merged
merged 1 commit into from Jan 15, 2016
Merged

openstack: switch the default json output to dictionary #752

merged 1 commit into from Jan 15, 2016

Conversation

ghost
Copy link

@ghost ghost commented Dec 15, 2015

The python-openstackclient output may either be a list of Value/Field or
a dictionary. Use the dictionary instead of the Value/Field form
because it is easier to deal with. The former was chosen because of a
bug that made it impossible to control the output. The bug still exists
but is believed to be rare enough to ignore. Should it happen, a message
recommending a corrective action and a comment on:

https://bugs.launchpad.net/python-openstackclient/+bug/1510546

is displayed.

Signed-off-by: Loic Dachary loic@dachary.org

@ghost ghost assigned zmc Dec 15, 2015
@zmc
Copy link
Member

zmc commented Dec 15, 2015

Looks good, but you misspelled "dictionary" :)

@ghost ghost changed the title openstack: switch the default json output to dictionnary openstack: switch the default json output to dictionary Dec 16, 2015
The python-openstackclient output may either be a list of Value/Field or
a dictionary. Use the dictionary instead of the Value/Field form
because it is easier to deal with. The former was chosen because of a
bug that made it impossible to control the output. The bug still exists
but is believed to be rare enough to ignore. Should it happen, a message
recommending a corrective action and a comment on:

https://bugs.launchpad.net/python-openstackclient/+bug/1510546

is displayed.

Signed-off-by: Loic Dachary <loic@dachary.org>
@ghost
Copy link
Author

ghost commented Dec 16, 2015

@zmc reppushed with not doubble lettters this timme ;-)

@zmc
Copy link
Member

zmc commented Dec 21, 2015

I was about the merge this but then realized it might break automated testing everywhere without manual intervention. Holding off for now.

@ghost
Copy link
Author

ghost commented Dec 21, 2015

@zmc indeed: upgrading to a version of teuthology with this requires pip uninstall cliff-tablib as well

@zmc
Copy link
Member

zmc commented Dec 21, 2015

@dachary on the other hand, this will only affect openstack deployments; I can easily make the change in our ovh cluster right before merging this, so I'll do that.

zmc added a commit that referenced this pull request Jan 15, 2016
openstack: switch the default json output to dictionary
@zmc zmc merged commit 6b7a457 into ceph:master Jan 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants