Commit 69fd222
Implement ansible module for management of libvirt volumes (ansible-collections#180)
* Initial Commit of virt_volume support
* Fixed etree error with an import
* Make documentation of the new module more standard
* Add references to doc_fragments in virt_volume
* Refactor documentation of virt_volume
* Fix docstring
* Fix import sanity issues
* Fix docstring
* Fix PEP8 issues
* Fix doc of 'state' parameter
* Bugfix in 'virt_volume' add missing line
* Bug in virt_volume core fixed
* Sanity issues fixed
* Python2 compatibility fixed
* Handling of idempotency for 'present' state of virt_volume changed
Trying to define a volume, that already exists caused the integration test
to fail with a traceback that implies, a code block has been executed,
which should have been skipped in the case of the target volume already
existing.
The previous code based on raising and catching an exception in case the
volume does not already exist, but resulting in the exception bein risen
anyway during the test, which lead to the failure.
This commit replaces the exception based check in hope to fix this bug.
* fixup! Handling of idempotency for 'present' state of virt_volume changed Trying to define a volume, that already exists caused the integration test to fail with a traceback that implies, a code block has been executed, which should have been skipped in the case of the target volume already existing. The previous code based on raising and catching an exception in case the volume does not already exist, but resulting in the exception bein risen anyway during the test, which lead to the failure. This commit replaces the exception based check in hope to fix this bug.
* Make volume name in task and xml match during integration test
* fixup! Make volume name in task and xml match during integration test
* Refactoring into `plugins.module_utils.pool` has been reverted
* Probably outdated sets of test variables removed
* Package name in integration test changed
* Change reference to package in integration testing
* fixup! Change reference to package in integration testing
* Variable files for Ubuntu deleted, since they are either outdated
* Variables for Fedora 29 removed, since it is end-of-life
* Remove unnecessary uri from unit test
* Integration test refactored to use templates and variables
* Add verstion number to plugins/modules/virt_volume.py
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
* Name added to author list
* Docstring formatting improved in plugins/modules/virt_volume.py
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
* Remove redundant option `undefined` from the state parameter.
---------
Co-authored-by: Leonardo Galli <leonardo.galli@bluewin.ch>
Co-authored-by: toroto006 <tobiaso@student.ethz.ch>
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>1 parent 00fb361 commit 69fd222
File tree
11 files changed
+842
-10
lines changed- plugins/modules
- tests/integration/targets
- virt_pool/vars
- virt_volume
- defaults
- tasks
- templates
- vars
11 files changed
+842
-10
lines changedLarge diffs are not rendered by default.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments