Skip to content

Commit 855a850

Browse files
[PR #11029/3c42ec73 backport][stable-12] remove extraneous whitespaces (#11035)
remove extraneous whitespaces (#11029) * remove extraneous whitespaces * ruff format * add changelog frag (cherry picked from commit 3c42ec7) Co-authored-by: Alexei Znamensky <[email protected]>
1 parent c8ad571 commit 855a850

File tree

8 files changed

+19
-14
lines changed

8 files changed

+19
-14
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
minor_changes:
2+
- infinity - consolidate double and triple whitespaces (https://github.com/ansible-collections/community.general/pull/11029).
3+
- ipa_otptoken - consolidate double and triple whitespaces (https://github.com/ansible-collections/community.general/pull/11029).
4+
- rhevm - consolidate double and triple whitespaces (https://github.com/ansible-collections/community.general/pull/11029).
5+
- slack - consolidate double and triple whitespaces (https://github.com/ansible-collections/community.general/pull/11029).

plugins/modules/infinity.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def get_network(self, network_id, network_name, limit=-1):
210210
return the details of a given with given network_id or name
211211
"""
212212
if network_name is None and network_id is None:
213-
self.module.exit_json(msg="You must specify one of the options 'network_name' or 'network_id'.")
213+
self.module.exit_json(msg="You must specify one of the options 'network_name' or 'network_id'.")
214214
method = "get"
215215
resource_url = ""
216216
params = {}
@@ -287,12 +287,12 @@ def release_ip(self, network_id="", ip_address=""):
287287
resource_url = ""
288288
response = None
289289
if ip_address is None or network_id is None:
290-
self.module.exit_json(msg="You must specify those two options: 'network_id' and 'ip_address'.")
290+
self.module.exit_json(msg="You must specify those two options: 'network_id' and 'ip_address'.")
291291

292292
resource_url = f"networks/{network_id}/children"
293293
response = self._get_api_call_ansible_handler(method, resource_url)
294294
if not response:
295-
self.module.exit_json(msg=f"There is an error in release ip {ip_address} from network {network_id}.")
295+
self.module.exit_json(msg=f"There is an error in release ip {ip_address} from network {network_id}.")
296296

297297
ip_list = json.loads(response)
298298
ip_idlist = []
@@ -407,7 +407,7 @@ def release_network(self, network_id="", released_network_name="", released_netw
407407
response = self._get_api_call_ansible_handler(method, resource_url)
408408
if not response:
409409
self.module.exit_json(
410-
msg=f" there is an error in releasing network {network_id} from network {released_network_name}."
410+
msg=f"There is an error in releasing network {network_id} from network {released_network_name}."
411411
)
412412
if response:
413413
response = json.loads(response)
@@ -422,7 +422,7 @@ def release_network(self, network_id="", released_network_name="", released_netw
422422
response = self._get_api_call_ansible_handler(method, resource_url, stat_codes=[204])
423423
else:
424424
self.module.exit_json(
425-
msg=f" When release network , could not find the network {released_network_name} from the given superent {network_id} "
425+
msg=f"When release network, could not find the network {released_network_name} from the given superent {network_id} "
426426
)
427427

428428
return response
@@ -448,7 +448,7 @@ def add_network(
448448
response = None
449449
if network_name is None or network_address is None or network_size is None:
450450
self.module.exit_json(
451-
msg="You must specify those options 'network_name', 'network_address' and 'network_size'"
451+
msg="You must specify those options 'network_name', 'network_address' and 'network_size'"
452452
)
453453

454454
if not network_family:

plugins/modules/ipa_otptoken.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def validate_modifications(ansible_to_ipa, module, ipa_otptoken, module_otptoken
350350
else:
351351
if len(ipa_otptoken[ansible_to_ipa[parameter]]) != 1:
352352
module.fail_json(
353-
msg="Invariant fail: Return value from IPA is not a list of length 1. Please open a bug report for the module."
353+
msg="Invariant fail: Return value from IPA is not a list of length 1. Please open a bug report for the module."
354354
)
355355
if parameter == "secretkey":
356356
# We stored the secret key in base32 since we had assumed that would need to

plugins/modules/listen_ports_facts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
6060
- name: List TCP ports
6161
ansible.builtin.debug:
62-
msg: "{{ ansible_facts.tcp_listen | map(attribute='port') | sort | list }}"
62+
msg: "{{ ansible_facts.tcp_listen | map(attribute='port') | sort | list }}"
6363
6464
- name: List UDP ports
6565
ansible.builtin.debug:

plugins/modules/ovh_ip_failover.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
- Uses the Python OVH API U(https://github.com/ovh/python-ovh). You have to create an application (a key and secret) with
1919
a consumer key as described into U(https://docs.ovh.com/gb/en/customer/first-steps-with-ovh-api/).
2020
requirements:
21-
- ovh >= 0.4.8
21+
- ovh >= 0.4.8
2222
extends_documentation_fragment:
2323
- community.general.attributes
2424
attributes:

plugins/modules/rhevm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ def createDisk(
452452
else:
453453
attempt += 1
454454
time.sleep(2)
455-
setMsg(f"The disk {diskname} is ready.")
455+
setMsg(f"The disk {diskname} is ready.")
456456
except Exception as e:
457457
setFailed()
458458
setMsg(f"Error getting the state of {diskname}.")
@@ -488,7 +488,7 @@ def createNIC(self, vmname, nicname, vlan, interface):
488488
else:
489489
attempt += 1
490490
time.sleep(2)
491-
setMsg(f"The iface {nicname} is ready.")
491+
setMsg(f"The iface {nicname} is ready.")
492492
except Exception as e:
493493
setFailed()
494494
setMsg(f"Error getting the state of {nicname}.")
@@ -739,7 +739,7 @@ def set_Host(self, host_name, cluster, ifaces):
739739
),
740740
)
741741
except Exception as e:
742-
setMsg(f"Failed to create the bond for {iface['name']}")
742+
setMsg(f"Failed to create the bond for {iface['name']}")
743743
setFailed()
744744
setMsg(str(e))
745745
return False

plugins/modules/slack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def do_notify_slack(module, domain, token, payload):
431431
else:
432432
if not domain:
433433
module.fail_json(
434-
msg="Slack has updated its webhook API. You need to specify a token of the form "
434+
msg="Slack has updated its webhook API. You need to specify a token of the form "
435435
"XXXX/YYYY/ZZZZ in your playbook"
436436
)
437437
slack_uri = OLD_SLACK_INCOMING_WEBHOOK % (domain, token)

plugins/modules/zypper_repository_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
- community.general.attributes.info_module
2121
2222
requirements:
23-
- "zypper >= 1.0 (included in openSUSE >= 11.1 or SUSE Linux Enterprise Server/Desktop >= 11.0)"
23+
- "zypper >= 1.0 (included in openSUSE >= 11.1 or SUSE Linux Enterprise Server/Desktop >= 11.0)"
2424
- python-xml
2525
notes:
2626
- For info about packages, use the module M(ansible.builtin.package_facts).

0 commit comments

Comments
 (0)