Skip to content

Commit 42aeeb9

Browse files
[PR #10029/73178e3d backport][stable-10] fixed hidden warnings from extra tests - batch 3 (#10045)
fixed hidden warnings from extra tests - batch 3 (#10029) * fixed hidden warnings from extra tests - batch 3 * add empty lines to separate sections of the EXAMPLE block * Apply suggestions from code review * Update plugins/modules/nmcli.py Co-authored-by: Felix Fontein <[email protected]> --------- Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit 73178e3) Co-authored-by: Alexei Znamensky <[email protected]>
1 parent 9dd7be0 commit 42aeeb9

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

plugins/modules/btrfs_subvolume.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
community.general.btrfs_subvolume:
121121
name: /@
122122
snapshot_source: /
123-
default: Yes
123+
default: true
124124
filesystem_device: /dev/vda2
125125
126126
- name: Create a snapshot of the /@ subvolume and recursively creating intermediate subvolumes as required

plugins/modules/htpasswd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
password: '9s36?;fyNp'
8686
owner: root
8787
group: www-data
88-
mode: 0640
88+
mode: '0640'
8989
9090
- name: Remove a user from a password file
9191
community.general.htpasswd:

plugins/modules/irc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
server: irc.example.net
125125
use_tls: true
126126
validate_certs: true
127-
channel: #t1
127+
channel: '#t1'
128128
msg: Hello world
129129
130130
- name: Send a message to an IRC channel
@@ -134,7 +134,7 @@
134134
server: irc.example.net
135135
use_tls: true
136136
validate_certs: true
137-
channel: #t1
137+
channel: '#t1'
138138
msg: 'All finished at {{ ansible_date_time.iso8601 }}'
139139
color: red
140140
nick: ansibleIRC
@@ -146,7 +146,7 @@
146146
server: irc.example.net
147147
use_tls: true
148148
validate_certs: true
149-
channel: #t1
149+
channel: '#t1'
150150
nick_to:
151151
- nick1
152152
- nick2

plugins/modules/lxd_container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@
342342
# nodes - 'node01' and 'node02'. In 'target:', 'node01' and 'node02' are names of LXD cluster
343343
# members that LXD cluster recognizes, not ansible inventory names, see: 'lxc cluster list'.
344344
# LXD API calls can be made to any LXD member, in this example, we send API requests to
345-
#'node01.example.com', which matches ansible inventory name.
345+
# 'node01.example.com', which matches ansible inventory name.
346346
- hosts: node01.example.com
347347
tasks:
348348
- name: Create LXD container

plugins/modules/nmcli.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,6 @@
12271227
# ```
12281228
12291229
1230-
12311230
## playbook-add.yml example
12321231
12331232
- hosts: openstack-stage
@@ -1264,7 +1263,7 @@
12641263
with_items:
12651264
- '{{ nmcli_team_slave }}'
12661265
1267-
###### Working with all cloud nodes - Bonding
1266+
##### Working with all cloud nodes - Bonding
12681267
- name: Try nmcli add bond - conn_name only & ip4 gw4 mode
12691268
community.general.nmcli:
12701269
type: bond

0 commit comments

Comments
 (0)