1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins/modules/cloud/misc
Tristan Le Guern 9a5fe4c9af
proxmox_kvm: new function wait_for_task() (#831)
Allows some factorization of redundant code in stop_vm(), start_vm(),
create_vm() and main().
This new function also waits one extra second after a successful task execution as the API can be a bit ahead of Proxmox.

Before:

    TASK [ansible-role-proxmox-instance : Ensure test-instance is created]
    changed: [localhost]

    TASK [ansible-role-proxmox-instance : Ensure test-instance is updated]
    fatal: [localhost]: FAILED! => changed=false
      msg: VM test-instance does not exist in cluster.

After:

    TASK [ansible-role-proxmox-instance : Ensure test-instance is created]
    changed: [localhost]

    TASK [ansible-role-proxmox-instance : Ensure test-instance is updated]
    changed: [localhost]

With suggestions from Felix Fontein <felix@fontein.de>.
2020-09-08 13:11:37 +02:00
..
cloud_init_data_facts.py Reduce ignored sanity tests in cloud/misc modules (#845) 2020-09-01 13:44:04 +02:00
helm.py Reduce ignored sanity tests in cloud/misc modules (#845) 2020-09-01 13:44:04 +02:00
ovirt.py Reduce ignored sanity tests in cloud/misc modules (#845) 2020-09-01 13:44:04 +02:00
proxmox.py Reduce ignored sanity tests in cloud/misc modules (#845) 2020-09-01 13:44:04 +02:00
proxmox_kvm.py proxmox_kvm: new function wait_for_task() (#831) 2020-09-08 13:11:37 +02:00
proxmox_template.py Reduce ignored sanity tests in cloud/misc modules (#845) 2020-09-01 13:44:04 +02:00
rhevm.py Reduce ignored sanity tests in cloud/misc modules (#845) 2020-09-01 13:44:04 +02:00
serverless.py Reduce ignored sanity tests in cloud/misc modules (#845) 2020-09-01 13:44:04 +02:00
terraform.py Reduce ignored sanity tests in cloud/misc modules (#845) 2020-09-01 13:44:04 +02:00
xenserver_facts.py modules: fix examples to use FQCN for builtin modules (#648) 2020-07-14 18:28:08 +03:00