mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
cloudstack: cs_vmsnapshot: fix pep8 (#27792)
This commit is contained in:
parent
f1ef61da4e
commit
fdaa803cca
3 changed files with 67 additions and 87 deletions
|
@ -80,6 +80,19 @@
|
|||
- snap|changed
|
||||
- snap.display_name == "{{ cs_resource_prefix }}_snapshot"
|
||||
|
||||
- name: test fail revert unknown snapshot
|
||||
cs_vmsnapshot:
|
||||
name: "{{ cs_resource_prefix }}_snapshot_unknown"
|
||||
vm: "{{ cs_resource_prefix }}-vm-snapshot"
|
||||
state: revert
|
||||
register: snap
|
||||
ignore_errors: true
|
||||
- name: verify test fail revert unknown snapshot
|
||||
assert:
|
||||
that:
|
||||
- snap|failed
|
||||
- snap.msg == "snapshot not found, could not revert VM"
|
||||
|
||||
- name: test revert snapshot
|
||||
cs_vmsnapshot:
|
||||
name: "{{ cs_resource_prefix }}_snapshot"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue