Skip to content
Snippets Groups Projects
Commit 606644c1 authored by Pavlo Shchelokovskyy's avatar Pavlo Shchelokovskyy Committed by Pavlo Shchelokovskyy
Browse files

Handle complex objects in yaml formatter better

this patch adds special handling of objects that have either 'toDict'
or 'to_dict' method, converting those to dictionary before passing
them to pyYaml.

The main immediate aim is to support instances of
openstack.utils.Munch class in the YAML output.

Story: 2010906
Task: 48728
Change-Id: If3718477533987b6b88b27ac639c6689a2e4b327
parent 6096869f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment