Skip to content

Commit 017045b

Browse files
committed
Added comment
1 parent 10a7b1e commit 017045b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

adcm_client/wrappers/api.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,12 @@ def action(self, *args, **kwargs):
133133
Example:
134134
api.action(['cluster', 'create'], name='testcluster')
135135
"""
136-
overrides = None
137136

138-
# Removing query and form parameters if they exist in path parameters
137+
# After parsing the schema, fields for a query, a form, or a path may appear that have
138+
# the same names, which may cause the field value to go to the wrong place.
139+
# Path fields take precedence over query and form fields, so if there are path fields
140+
# and query or form fields with the same name, we delete the query and form fields
141+
# with the given name.
139142
path = args[0]
140143
link = self.schema[path[0]]
141144
for item in path[1:]:

0 commit comments

Comments
 (0)