mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 06:31:23 -07:00
Allow change kernel boot parameters of oVirt hosts (#20607)
* cloud: ovirt: add override_display parameter * cloud: ovirt: add kernel_params parameter * cloud: ovirt: add reinstall state to ovirt_hosts module * cloud: ovirt: wait before polling entity state
This commit is contained in:
parent
ac527ef86f
commit
937fc1421b
2 changed files with 95 additions and 14 deletions
|
@ -283,6 +283,9 @@ def wait(
|
|||
if wait:
|
||||
start = time.time()
|
||||
while time.time() < start + timeout:
|
||||
# Sleep for `poll_interval` seconds if none of the conditions apply:
|
||||
time.sleep(float(poll_interval))
|
||||
|
||||
# Exit if the condition of entity is valid:
|
||||
entity = get_entity(service)
|
||||
if condition(entity):
|
||||
|
@ -290,9 +293,6 @@ def wait(
|
|||
elif fail_condition(entity):
|
||||
raise Exception("Error while waiting on result state of the entity.")
|
||||
|
||||
# Sleep for `poll_interval` seconds if nor of the conditions apply:
|
||||
time.sleep(float(poll_interval))
|
||||
|
||||
|
||||
def __get_auth_dict():
|
||||
OVIRT_URL = os.environ.get('OVIRT_URL')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue