diff options
Diffstat (limited to 'openstack')
| -rw-r--r-- | openstack/common/jsonutils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openstack/common/jsonutils.py b/openstack/common/jsonutils.py index e8e14c4..f96e727 100644 --- a/openstack/common/jsonutils.py +++ b/openstack/common/jsonutils.py @@ -109,7 +109,9 @@ def to_primitive(value, convert_instances=False, level=0): convert_instances=convert_instances, level=level + 1) elif hasattr(value, '__iter__'): - return to_primitive(list(value), level) + return to_primitive(list(value), + convert_instances=convert_instances, + level=level) elif convert_instances and hasattr(value, '__dict__'): # Likely an instance of something. Watch for cycles. # Ignore class member vars. |
