mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 07:26:03 -03:30
Merge pull request #7856 from zedr/fix-related-import-return
Fix early return in assign related method Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -268,9 +268,9 @@ class ApiV2(base.Base):
|
|||||||
def _assign_related(self):
|
def _assign_related(self):
|
||||||
for _page, name, related_set in self._related:
|
for _page, name, related_set in self._related:
|
||||||
endpoint = _page.related[name]
|
endpoint = _page.related[name]
|
||||||
if isinstance(related_set, dict): # Relateds that are just json blobs, e.g. survey_spec
|
if isinstance(related_set, dict): # Related that are just json blobs, e.g. survey_spec
|
||||||
endpoint.post(related_set)
|
endpoint.post(related_set)
|
||||||
return
|
continue
|
||||||
|
|
||||||
if 'natural_key' not in related_set[0]: # It is an attach set
|
if 'natural_key' not in related_set[0]: # It is an attach set
|
||||||
# Try to impedance match
|
# Try to impedance match
|
||||||
|
|||||||
Reference in New Issue
Block a user