mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 22:00:22 -07:00
parent
2f33c1a1a1
commit
5553b20828
206 changed files with 1853 additions and 1870 deletions
|
@ -504,7 +504,6 @@ class BaseModule(object):
|
|||
after[k] = update[k]
|
||||
return after
|
||||
|
||||
|
||||
def create(
|
||||
self,
|
||||
entity=None,
|
||||
|
@ -579,9 +578,14 @@ class BaseModule(object):
|
|||
# Wait for the entity to be created and to be in the defined state:
|
||||
entity_service = self._service.service(entity.id)
|
||||
|
||||
state_condition = lambda entity: entity
|
||||
def state_condition(entity):
|
||||
return entity
|
||||
|
||||
if result_state:
|
||||
state_condition = lambda entity: entity and entity.status == result_state
|
||||
|
||||
def state_condition(entity):
|
||||
return entity and entity.status == result_state
|
||||
|
||||
wait(
|
||||
service=entity_service,
|
||||
condition=state_condition,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue