Skip to content

Commit eeebd51

Browse files
rdiscalaryanpetrello
authored andcommitted
Fix early return in assign related method
This change fixes an erroneus early return in a private method that was preventing more than one type of related object from being correctly assigned to the parent object, and therefore imported. Also, a minor spelling mistake was corrected.
1 parent 395b338 commit eeebd51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

awxkit/awxkit/api/pages/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,9 @@ def _assign_roles(self):
268268
def _assign_related(self):
269269
for _page, name, related_set in self._related:
270270
endpoint = _page.related[name]
271-
if isinstance(related_set, dict): # Relateds that are just json blobs, e.g. survey_spec
271+
if isinstance(related_set, dict): # Related that are just json blobs, e.g. survey_spec
272272
endpoint.post(related_set)
273-
return
273+
continue
274274

275275
if 'natural_key' not in related_set[0]: # It is an attach set
276276
# Try to impedance match

0 commit comments

Comments
 (0)