recursive_keypairs doesn't throw 'separator' param to next iteration

Bug #1268628 reported by Nadya Privalova
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Undecided
Nadya Privalova

Bug Description

recursive_keypairs doesn't throw 'separator' param to next iteration. So that's why representation of dictionaries are not get user-expected.

Changed in ceilometer:
assignee: nobody → Nadya Privalova (nprivalova)
Revision history for this message
gordon chung (chungg) wrote :

i think they should be fixed. for the most part, recursive_keypairs() was used only to change how data was displayed (except for Sample post)...question is how many people use Sample post.... also, if we flatten metadata incorrectly as such, how is mongodb storing this? is it broken ie. the context of depth is gone?

i know previously i was asked why the metadata showed as a.b:c:d:.. it just doesn't look nice.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (master)

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

Changed in ceilometer:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/67704
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=fb32c3b19c283d9d4cf78af35d33bd12f16452cf
Submitter: Jenkins
Branch: master

commit fb32c3b19c283d9d4cf78af35d33bd12f16452cf
Author: Nadya Privalova <email address hidden>
Date: Sun Jan 19 12:45:56 2014 +0400

    Fix recursive_keypairs output

    recursive_keypairs has 'separator' argument. This method is recursive
    and a problem is that 'separator' argument is applied only in first
    iteration of the method.

    Besides, this method is used in flatten_metadata in API implementation.
    That's why it is needed not to change output from recursive_keypairs in flatten_metadata.

    So the path has a goal to fix incorrect recursive_keypairs impementation but
    not to change output of flatten_matadata in API

    Fixes bug 1268628

    Change-Id: Ic9829342c47325c1df7b81dc4148c08a13e0d067

Changed in ceilometer:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: none → icehouse-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: icehouse-3 → 2014.1
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.