Skip to content

Commit a352f26

Browse files
authored
ci: devel is 2.20, add ignore file, fix ci (ansible-collections#204)
The CI pipeline was failing due to invalid YAML syntax in the `Examples` section of `virt_volume.py`, this is also fixed.
1 parent 0543423 commit a352f26

File tree

3 files changed

+34
-5
lines changed

3 files changed

+34
-5
lines changed

.azure-pipelines/azure-pipelines.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,18 @@ stages:
5656
- name: Units
5757
test: 'devel/units/1'
5858

59+
- stage: Ansible_2_20
60+
displayName: Sanity & Units 2.20
61+
dependsOn: []
62+
jobs:
63+
- template: templates/matrix.yml
64+
parameters:
65+
targets:
66+
- name: Sanity
67+
test: '2.20/sanity/1'
68+
- name: Units
69+
test: '2.20/units/1'
70+
5971
- stage: Ansible_2_19
6072
displayName: Sanity & Units 2.19
6173
dependsOn: []
@@ -106,6 +118,19 @@ stages:
106118
- name: Ubuntu 22.04
107119
test: ubuntu2204
108120

121+
stage: Docker_2_20
122+
displayName: Docker 2.20
123+
dependsOn: []
124+
jobs:
125+
- template: templates/matrix.yml
126+
parameters:
127+
testFormat: 2.20/linux/{0}/1
128+
targets:
129+
- name: Fedora 41
130+
test: fedora41
131+
- name: Ubuntu 22.04
132+
test: ubuntu2204
133+
109134
- stage: Docker_2_19
110135
displayName: Docker 2.19
111136
dependsOn: []
@@ -151,10 +176,12 @@ stages:
151176
condition: succeededOrFailed()
152177
dependsOn:
153178
- Ansible_devel
179+
- Ansible_2_20
154180
- Ansible_2_19
155181
- Ansible_2_18
156182
- Ansible_2_17
157183
- Docker_devel
184+
- Docker_2_20
158185
- Docker_2_19
159186
- Docker_2_18
160187
- Docker_2_17

plugins/modules/virt_volume.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
EXAMPLES = '''
6161
- name: "Create volume in existing default pool"
62-
community.libvirt.virt_volume:
62+
community.libvirt.virt_volume:
6363
name: testing-volume
6464
state: present
6565
pool: default
@@ -70,27 +70,27 @@
7070
<capacity unit="M">10</capacity>
7171
<target>
7272
<permissions>
73-
<mode>0644</mode>
73+
<mode>"0644"</mode>
7474
<label>virt_image_t</label>
7575
</permissions>
7676
</target>
7777
</volume>
7878
7979
- name: "List volumes in default pool"
80-
community.libvirt.virt_volume:
80+
community.libvirt.virt_volume:
8181
command: list_volumes
8282
pool: default
8383
register: __result_list_volumes
8484
8585
- name: "Get volume XML"
86-
community.libvirt.virt_volume:
86+
community.libvirt.virt_volume:
8787
name: testing-volume
8888
command: get_xml
8989
pool: default
9090
register: __result_vol_xml
9191
9292
- name: "Delete volume from default pool"
93-
community.libvirt.virt_volume:
93+
community.libvirt.virt_volume:
9494
name: testing-volume
9595
state: absent
9696
pool: default

tests/sanity/ignore-2.20.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
tests/utils/shippable/timing.py shebang
2+
tests/unit/compat/builtins.py pylint:unused-import

0 commit comments

Comments
 (0)