File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/azure-cli-core/azure/cli/core Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -662,8 +662,8 @@ def todict(obj, post_processor=None):
662662 # azure-core provided new function `attribute_list` to list all attribute names
663663 # so that we don't need to use raw __dict__ directly
664664 if getattr (obj , "_is_model" , False ):
665- result = {to_camel_case ( attr ) : todict (getattr (obj , attr ), post_processor )
666- for attr in attribute_list (obj ) if hasattr (obj , attr )}
665+ result = {rest_name : todict (getattr (obj , attr ), post_processor )
666+ for attr , rest_name in attribute_rest_name_list (obj ) if hasattr (obj , attr )}
667667 return post_processor (obj , result ) if post_processor else result
668668 if hasattr (obj , '_asdict' ):
669669 return todict (obj ._asdict (), post_processor )
You can’t perform that action at this time.
0 commit comments