Skip to content

Commit

Permalink
Fail early processing project factory
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding committed Feb 12, 2020
1 parent 4a455c7 commit 706a7a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion awxkit/awxkit/api/pages/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ def create(
self.update_identity(Projects(self.connection).post(payload))

if kwargs.get('wait', True):
self.related.current_update.get().wait_until_completed()
update = self.related.current_update.get()
update.wait_until_completed().assert_successful()
return self.get()

return self
Expand Down

0 comments on commit 706a7a9

Please sign in to comment.