From 6387258da1b60cb38b12ee41e51b719dc96a6598 Mon Sep 17 00:00:00 2001 From: Jeff Bradberry Date: Wed, 8 Apr 2020 17:48:36 -0400 Subject: [PATCH] Only wait for Project updates not other kinds of objects that have a status. --- 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 d5314d0baf..b4a786d7a6 100644 --- a/awxkit/awxkit/api/pages/api.py +++ b/awxkit/awxkit/api/pages/api.py @@ -239,10 +239,10 @@ class ApiV2(base.Base): if frozen_key is not None and frozen_key not in self._natural_key and fetch: pass # FIXME - from awxkit.api.mixins import has_status + from awxkit.api.pages import projects _page = self._natural_key.get(frozen_key) - if isinstance(_page, has_status.HasStatus) and not _page.is_completed: + if isinstance(_page, projects.Project) and not _page.is_completed: _page.wait_until_completed() _page = _page.get() self._natural_key[frozen_key] = _page