Skip to content

Commit 49f9bc2

Browse files
author
Auto-Upgrade Orchestrator
committed
fix
1 parent 97158c4 commit 49f9bc2

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • src/dataprotection/azext_dataprotection/manual

src/dataprotection/azext_dataprotection/manual/helpers.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,14 @@ def convert_dict_keys_snake_to_camel(dictionary):
10291029
return new_dictionary
10301030

10311031

1032+
_SNAKE_TO_CAMEL_OVERRIDES = {
1033+
"resource_id": "resourceID",
1034+
}
1035+
1036+
10321037
def convert_string_snake_to_camel(string):
1038+
if string in _SNAKE_TO_CAMEL_OVERRIDES:
1039+
return _SNAKE_TO_CAMEL_OVERRIDES[string]
10331040
new_string = re.sub(r'_([a-z])', lambda m: m.group(1).upper(), string)
10341041
return new_string
10351042

0 commit comments

Comments
 (0)