From eeebd517d1401e6f8db00c139a48142f7432f40a Mon Sep 17 00:00:00 2001 From: Rigel Di Scala Date: Fri, 7 Aug 2020 09:37:02 +0200 Subject: [PATCH] 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. --- awxkit/awxkit/api/pages/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awxkit/awxkit/api/pages/api.py b/awxkit/awxkit/api/pages/api.py index 066153bfd3..664c0c18cf 100644 --- a/awxkit/awxkit/api/pages/api.py +++ b/awxkit/awxkit/api/pages/api.py @@ -268,9 +268,9 @@ class ApiV2(base.Base): def _assign_related(self): for _page, name, related_set in self._related: 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) - return + continue if 'natural_key' not in related_set[0]: # It is an attach set # Try to impedance match