mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00: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:
committed by
Ryan Brown
parent
ac527ef86f
commit
937fc1421b
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user