Alexei Znamensky
634be713bb
replace batch of redundant to_native() occurrences ( #11098 )
...
* replace batch of redundant to_native() occurrences
* add changelog frag
2025-11-11 19:10:00 +13:00
Felix Fontein
3478863ef0
Address issues reported by ruff check ( #11043 )
...
* Resolve E713 and E714 (not in/is tests).
* Address UP018 (unnecessary str call).
* UP045 requires Python 3.10+.
* Address UP007 (X | Y for type annotations).
* Address UP035 (import Callable from collections.abc).
* Address UP006 (t.Dict -> dict).
* Address UP009 (UTF-8 encoding comment).
* Address UP034 (extraneous parantheses).
* Address SIM910 (dict.get() with None default).
* Address F401 (unused import).
* Address UP020 (use builtin open).
* Address B009 and B010 (getattr/setattr with constant name).
* Address SIM300 (Yoda conditions).
* UP029 isn't in use anyway.
* Address FLY002 (static join).
* Address B034 (re.sub positional args).
* Address B020 (loop variable overrides input).
* Address B017 (assert raise Exception).
* Address SIM211 (if expression with false/true).
* Address SIM113 (enumerate for loop).
* Address UP036 (sys.version_info checks).
* Remove unnecessary UP039.
* Address SIM201 (not ==).
* Address SIM212 (if expr with twisted arms).
* Add changelog fragment.
* Reformat.
2025-11-08 17:05:21 +13:00
Felix Fontein
340ff8586d
Reformat everything.
2025-11-01 13:46:53 +01:00
Alexei Znamensky
749c06cd01
modules [no]*: use f-strings ( #10973 )
...
* modules [no]*: use f-strings
* add changelog frag
2025-10-26 07:48:10 +01:00
Felix Fontein
8f8a0e1d7c
Fix __future__ imports, __metaclass__ = type, and remove explicit UTF-8 encoding statement for Python files ( #10886 )
...
* Adjust all __future__ imports:
for i in $(grep -REl "__future__.*absolute_import" plugins/ tests/); do
sed -e 's/from __future__ import .*/from __future__ import annotations/g' -i $i;
done
* Remove all UTF-8 encoding specifications for Python source files:
for i in $(grep -REl '[-][*]- coding: utf-8 -[*]-' plugins/ tests/); do
sed -e '/^# -\*- coding: utf-8 -\*-/d' -i $i;
done
* Remove __metaclass__ = type:
for i in $(grep -REl '__metaclass__ = type' plugins/ tests/); do
sed -e '/^__metaclass__ = type/d' -i $i;
done
2025-10-10 19:52:04 +02:00
Alexei Znamensky
6aadcc72d1
[mem ... n]*.py: normalize docs ( #9388 )
...
* [mem ... n]*.py: normalize docs
* Update plugins/modules/netcup_dns.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* netcup_dns: change type of RV(records)
From complex to list of dicts.
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
2024-12-26 13:41:54 +01:00
apecnascimento
714e06089e
Add nomad_job port parameter ( #7412 )
...
* Add nomad_job port parameter
* Add changelog frag
* Update doc frag
* Fix trailing whitespace
* Add port to nomad_info
* Update changelogs/fragments/7412-add-port-for-nomad-connection.yaml
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/doc_fragments/nomad.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Add space
* Remove trailing whitespace
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
2023-10-25 08:48:18 +02:00
Felix Fontein
b271dba4bf
Use semantic markup (modules m-n) ( #6679 )
...
* Use semantic markup.
* Use option instead of alias.
* Simplify.
* Fix/improve nagios docs.
2023-06-15 15:47:40 +02:00
Felix Fontein
d03ae532ed
Add attributes to more modules (3/4) ( #5967 )
...
Add attributes to more modules.
2023-02-20 17:30:26 +01:00
Felix Fontein
b531ecdc9b
Unflatmap community.general ( #5461 )
...
* Move files.
* Update imports and references.
* Move wrongly placed files.
* Reverse redirects, deprecate long → short name redirects.
* Simplify contribution guidelines for new modules.
* Rewrite BOTMETA.
* Add changelog fragment.
* Fix ignore.txt files.
2022-11-02 20:42:29 +00:00
Felix Fontein
7743ecd776
Replace symlinks with meta/runtime.yml redirects. ( #4562 )
2022-04-26 20:33:13 +02:00
chris93111
b2e075e6d3
new module nomad_job & nomad_job_info ( #867 )
...
* nomad_job module
* Delete nomad_job.py
* new module nomad_job
* fix symlink
* disable test with centos6 , not supported
* fix centos unsupported
* fix
* requested changes doc
* disable freebsd ci
* requested change docs + check_mode
* lint
* fix syntax
* update docs
* doc fix
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update nomad_job.py
fix docs + ssl true default
* Update nomad_job.yml
disable ssl ci
* nomad_job_info
* Update nomad_job_info.py
fix token nomad job info
* Update nomad_job.py
idempotence + check_mode plan result
* Update nomad_job.py
fail if no id with json content
* Update nomad_job.yml
ci idempotence + check_mode , nomad_job and nomad_job_info
* Update nomad_job.yml
fix ci
* Update main.yml
add kill nomad ci
* Update main.yml
always kill
* fix check mode delete job
* ci with delete and check_mode
* lint
* force start in first deploy
* 12.4 nomad
* fix version nomad
* fix ci assert
* fix ci
* fix ci
* lint
* fix version job id None, import os unused
* lint job_info
* Update aliases
* docs frag + info refacto
* lint
lint
* ci
* jmespath
* fix ci
Co-authored-by: FERREIRA Christophe <christophe.ferreira@cnaf.fr>
Co-authored-by: Felix Fontein <felix@fontein.de>
2020-10-19 13:40:07 +02:00