Remove and prevent trailing whitespace (#10199)
Some checks are pending
EOL CI / EOL Sanity (Ⓐ2.16) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.16+py2.7) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.16+py3.11) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.16+py3.6) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/3/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/3/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/3/) (push) Waiting to run
nox / Run extra sanity tests (push) Waiting to run

* Remove trailing whitespace.

* Add no-trailing-whitespace extra test.

* Re-add needed trailing whitespace.

* Remove one more trailing whitespace.
This commit is contained in:
Felix Fontein 2025-06-07 17:47:22 +02:00 committed by GitHub
commit 8bd68e7e41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
50 changed files with 119 additions and 115 deletions

View file

@ -273,7 +273,7 @@
skip-name
skip-name-resolve
max_connections = 500
- name: test-value 12 - Verify content of ini file is as expected
assert:
that:
@ -395,7 +395,7 @@
set_fact:
expected16: |+
beverage = coke
content16: "{{ output_content.content | b64decode }}"
- name: test-value 16 - assert 'changed' is true and content is OK (no section)
@ -423,7 +423,7 @@
set_fact:
expected17: |+
beverage = water
content17: "{{ output_content.content | b64decode }}"
- name: test-value 17 - assert 'changed' is true and content is OK (no section)
@ -532,14 +532,7 @@
- name: test-value 20 - set expected content and get current ini file content
set_fact:
expected20: |+
[extensions]
evolve =
regress =
improve =
[foobar]
foo =
expected20: "\n[extensions]\nevolve = \nregress = \nimprove = \n[foobar]\nfoo = \n"
content20: "{{ output_content.content | b64decode }}"
- name: test-value 20 - Verify content of ini file is as expected

View file

@ -512,7 +512,7 @@
path: "{{ output_file }}"
section: drinks
state: absent
register: result20_remove_again
register: result20_remove_again
- name: test-values 20 - read content from output file
slurp:
@ -571,7 +571,7 @@
- name: test-values 22 - Create starting ini file
copy:
content: |
# Some comment to test
[mysqld]
connect_timeout = 300
@ -604,7 +604,7 @@
- name: test-values 22 - set expected content and get current ini file content
set_fact:
expected22: |
# Some comment to test
[mysqld]
connect_timeout = 300
@ -634,7 +634,7 @@
path: "{{ output_file }}"
section: section1
option: var2
values:
values:
- foo
state: present
register: result23
@ -647,7 +647,7 @@
- name: test-values 23 - set expected content and get current ini file content
set_fact:
expected23: |
# Some comment to test
[mysqld]
connect_timeout = 300
@ -691,7 +691,7 @@
- name: test-values 24 - set expected content and get current ini file content
set_fact:
expected24: |
# Some comment to test
[mysqld]
connect_timeout = 300
@ -777,7 +777,7 @@
expected26: |+
beverage = water
beverage = orange juice
content26: "{{ output_content.content | b64decode }}"
- name: test-values 26 - assert 'changed' is true and content is OK (no section)
@ -820,7 +820,7 @@
path: "{{ output_file }}"
section: drinks
option: beverage
values:
values:
- water
- orange juice
state: present

View file

@ -108,7 +108,7 @@
- name: test-modify_inactive_option 3 - set expected content and get current ini file content
set_fact:
expected3: |
[section1]
# Uncomment the line below to enable foo
# foo = bar