mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 05:01:19 -03:30
Fail early processing project factory
This commit is contained in:
parent
26dcb000f6
commit
c5079607aa
@ -112,7 +112,8 @@ class Project(HasCopy, HasCreate, HasNotifications, UnifiedJobTemplate):
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user