Skip to content

Commit ebf098d

Browse files
authored
DEMO (DO NOT MERGE)
1 parent 51d6b2c commit ebf098d

File tree

1 file changed

+2
-2
lines changed
  • src/azure-cli-core/azure/cli/core

1 file changed

+2
-2
lines changed

src/azure-cli-core/azure/cli/core/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)