mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 10:57:35 -02:30
Fail early processing project factory
This commit is contained in:
@@ -112,7 +112,8 @@ class Project(HasCopy, HasCreate, HasNotifications, UnifiedJobTemplate):
|
|||||||
self.update_identity(Projects(self.connection).post(payload))
|
self.update_identity(Projects(self.connection).post(payload))
|
||||||
|
|
||||||
if kwargs.get('wait', True):
|
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.get()
|
||||||
|
|
||||||
return self
|
return self
|
||||||
|
|||||||
Reference in New Issue
Block a user