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/changelogs/fragments
Tristan Le Guern 1863694297
[PR #831 backport][stable-1] proxmox_kvm: new function wait_for_task() (#933)
* 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>.

(cherry picked from commit 9a5fe4c9af)

* Update plugins/modules/cloud/misc/proxmox_kvm.py

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: Felix Fontein <felix@fontein.de>
2020-09-18 10:05:23 +02:00
..
.keep Rename changelogs/fragments/.empty -> changelogs/fragments/.keep 2020-08-07 08:18:40 +02:00
563-update-terraform-status-test.yaml Fix terraform changed status detection test (#561) (#563) (#908) 2020-09-17 19:23:43 +02:00
777-interfaces_file-re-escape.yml interfaces_file: re.escape() old value (#880) 2020-09-12 20:10:31 +02:00
783-fix-gem-installed-versions.yaml gem: Fix get_installed_versions: correctly parse "default" version. (#783) (#918) 2020-09-17 20:01:58 +02:00
789-pkg5-wrap-to-modify-package-list.yaml pkg5: wrap 'to modify' package list (#789) (#911) 2020-09-17 19:29:44 +02:00
796-postgresql_privs-grant-option-bug.yaml postgresql_privs: Fix bug with grant_option (#796) (#912) 2020-09-17 19:34:28 +02:00
802-pushover-device-parameter.yml Specify device for Pushover notification (#802) (#913) 2020-09-17 19:41:11 +02:00
811-proxmox-kvm-state-absent.yml proxmox_kvm: fix idempotency issue with state=absent (#811) (#914) 2020-09-17 19:41:19 +02:00
825-bootsource-override-option.yaml redfish_command: allow setting the BootSourceOverrideEnabled property (#825) (#915) 2020-09-17 19:50:12 +02:00
831-proxmox-kvm-wait.yml [PR #831 backport][stable-1] proxmox_kvm: new function wait_for_task() (#933) 2020-09-18 10:05:23 +02:00
843-update-slack-messages.yml add message_id (ts) option to slack module to allow editing messages (#843) (#927) 2020-09-18 06:11:42 +02:00
858-postgresql_privs_should_allow_public_role_lowercased.yml postgresql_privs: allow lowercased PUBLIC role (#858) (#921) 2020-09-17 20:59:27 +02:00
887-rollback-if-nothing-changed.yml Rollback if nothing changed (#887) (#925) 2020-09-17 21:17:29 +02:00
892-slack-token-validation.yml Slack: moves to \S+ check instead of \w+-\w+ (#863) (#922) 2020-09-17 20:59:42 +02:00
897-lookup-plugin-hashivault-add-approle-mount-point.yaml [lookup_plugin/hashi_vault] add missing 'mount_point' param for approle (#897) (#926) 2020-09-17 21:38:46 +02:00
homebrew-cask-at-symbol-fix.yaml Fix for error trying to install cask with '@' in the name (#763) (#910) 2020-09-17 19:41:00 +02:00