Skip to content

Commit cbe7aab

Browse files
committed
Update examples formatting
Signed-off-by: Webster Mudge <[email protected]>
1 parent c56cf7c commit cbe7aab

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

plugins/filter/cm_version.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,21 @@
3333
"""
3434

3535
EXAMPLES = """
36-
# Parse a standard version string
37-
standard: "{{ '1.2.3' | cm_version }}"
36+
- name: Parse a standard version string
37+
ansible.builtin.set_fact:
38+
standard: "{{ '1.2.3' | cm_version }}"
3839
39-
# Parse a version plus build number
40-
build: "{{ '1.2.3.4' | cm_version }}"
40+
- name: Parse a version plus build number
41+
ansible.builtin.set_fact:
42+
build: "{{ '1.2.3.4' | cm_version }}"
4143
42-
# Parse a version plus build metadata string
43-
build: "{{ '1.2.3+build7' | cm_version }}"
44+
- name: Parse a version plus build metadata string
45+
ansible.builtin.set_fact:
46+
build: "{{ '1.2.3+build7' | cm_version }}"
4447
45-
# Parse a version plus prerelease and build string
46-
full: "{{ '1.2.3-rc1+build7' | cm_version }}"
48+
- name: Parse a version plus prerelease and build string
49+
ansible.builtin.set_fact:
50+
full: "{{ '1.2.3-rc1+build7' | cm_version }}"
4751
"""
4852

4953
RETURN = """

0 commit comments

Comments
 (0)