Teal Dulcet
70bf676b73
Fixed PERF102 (incorrect-dict-iterator): When using only the keys of a dict use the keys()
method
2025-01-12 07:38:26 -08:00
Teal Dulcet
bd0cb22467
Fixed UP032 (f-string): Use f-string instead of format
call
2025-01-12 07:36:41 -08:00
Teal Dulcet
2021c6d501
Fixed RUF039 (unraw-re-pattern)
2025-01-12 07:27:27 -08:00
Teal Dulcet
a0346b735b
Fixed B007 (unused-loop-control-variable)
2025-01-12 07:00:47 -08:00
Teal Dulcet
77a7a29322
Fixed TRY300 (try-consider-else): Consider moving this statement to an else
block
2025-01-12 06:55:42 -08:00
Teal Dulcet
1d1a1a09c4
Fixed UP031 (printf-string-formatting): Use format specifiers instead of percent format
2025-01-12 06:38:20 -08:00
Teal Dulcet
1782b69405
Fixed PLC1901 (compare-to-empty-string)
2025-01-12 06:07:00 -08:00
Teal Dulcet
385ac086e6
Fixed RUF010 (explicit-f-string-type-conversion): Use explicit conversion flag
2025-01-12 05:50:26 -08:00
Teal Dulcet
11899920b7
Fixed FURB110 (if-exp-instead-of-or-operator): Replace ternary if
expression with or
operator
2025-01-12 05:50:24 -08:00
Teal Dulcet
93099ce8d8
Fixed UP032 (f-string): Use f-string instead of format
call
2025-01-12 05:50:24 -08:00
Teal Dulcet
9c7e329bd7
Fixed RUF031 (incorrectly-parenthesized-tuple-in-subscript): Avoid parentheses for tuples in subscripts
2025-01-12 05:50:23 -08:00
Teal Dulcet
f4cef66d93
Fixed RET505 (superfluous-else-return)
2025-01-12 05:49:18 -08:00
Teal Dulcet
b1e094afe5
Fixed UP031 (printf-string-formatting): Use format specifiers instead of percent format
2025-01-12 05:49:17 -08:00
Joshua Tauberer
f73da3db60
Fix likely merge mistake in 564ed59bb4
...
Fixes #2466
2025-01-04 14:28:36 -05:00
KiekerJan
564ed59bb4
Add check on ipv6 for spamhaus ( #2428 )
2024-12-22 07:48:36 -05:00
KiekerJan
9f87b36ba1
add check on SOA record to determine up to date synchronization of secondary nameserver ( #2429 )
2024-12-22 07:45:45 -05:00
KiekerJan
1a239c55bb
More robust reading of sshd configuration ( #2330 )
...
Use sshd -T instead of directly reading the configuration files
2024-03-23 11:16:40 -04:00
KiekerJan
0b1d92388a
Take spamhaus return codes into account in status check and postfix config ( #2332 )
2024-03-10 08:09:36 -04:00
Teal Dulcet
618c466b84
Fixed SIM114 (if-with-same-arms): Combine if
branches using logical or
operator
2024-03-10 07:56:49 -04:00
Teal Dulcet
a32354fd91
Fixed PLR5501 (collapsible-else-if): Use elif
instead of else
then if
, to reduce indentation
2024-03-10 07:56:49 -04:00
Teal Dulcet
e466b9bb53
Fixed RUF005 (collection-literal-concatenation)
2024-03-10 07:56:49 -04:00
Teal Dulcet
0e9193651d
Fixed PLW1514 (unspecified-encoding): open
in text mode without explicit encoding
argument
2024-03-10 07:56:49 -04:00
Teal Dulcet
a02b59d4e4
Fixed F401 (unused-import): socket.timeout
imported but unused
2024-03-10 07:56:49 -04:00
Teal Dulcet
c719fce40a
Fixed UP032 (f-string): Use f-string instead of format
call
2024-03-10 07:56:49 -04:00
Teal Dulcet
922c59ddaf
Fixed SIM212 (if-expr-with-twisted-arms): Use with_lines if with_lines else []
instead of [] if not with_lines else with_lines
2024-03-10 07:56:49 -04:00
Teal Dulcet
20a99c0ab8
Fixed UP041 (timeout-error-alias): Replace aliased errors with TimeoutError
2024-03-10 07:56:49 -04:00
Teal Dulcet
54af4725f9
Fixed C404 (unnecessary-list-comprehension-dict): Unnecessary list
comprehension (rewrite as a dict
comprehension)
2024-03-10 07:56:49 -04:00
Teal Dulcet
fd4fcdaf53
Fixed E712 (true-false-comparison): Comparison to False
should be cond is False
or if not cond:
2024-03-10 07:56:49 -04:00
Teal Dulcet
57d05c1ab2
Fixed B007 (unused-loop-control-variable)
2024-03-10 07:54:51 -04:00
Teal Dulcet
c953e5784d
Fixed C401 (unnecessary-generator-set): Unnecessary generator (rewrite as a set
comprehension)
2024-03-10 07:54:51 -04:00
Teal Dulcet
99d3929f99
Fixed E711 (none-comparison)
2024-03-10 07:54:51 -04:00
Teal Dulcet
e8d1c037cb
Fixed SIM102 (collapsible-if): Use a single if
statement instead of nested if
statements
2024-03-10 07:54:51 -04:00
Teal Dulcet
3d72c32b1d
Fixed W605 (invalid-escape-sequence)
2024-03-10 07:54:51 -04:00
Teal Dulcet
14a5613dc8
Fixed UP031 (printf-string-formatting): Use format specifiers instead of percent format
2024-03-10 07:54:51 -04:00
Teal Dulcet
eefc0514b2
Fixed UP030 (format-literals): Use implicit references for positional format fields
2024-03-10 07:54:51 -04:00
Teal Dulcet
13b38cc04d
Fixed F841 (unused-variable)
2024-03-10 07:54:51 -04:00
Teal Dulcet
2b426851f9
Fixed UP032 (f-string): Use f-string instead of format
call
2024-03-10 07:54:51 -04:00
Teal Dulcet
b7f70b17ac
Fixed RET504 (unnecessary-assign)
2024-03-10 07:54:51 -04:00
Teal Dulcet
49124cc9ca
Fixed PLR6201 (literal-membership): Use a set
literal when testing for membership
2024-03-10 07:54:51 -04:00
Teal Dulcet
cb922ec286
Fixed UP015 (redundant-open-modes): Unnecessary open mode parameters
2024-03-10 07:54:49 -04:00
Teal Dulcet
0ee64f2fe8
Fixed F401 (unused-import)
2024-03-10 07:54:21 -04:00
KiekerJan
785c337fb3
Make reading of previous status check result more robust ( #2347 )
2024-03-10 07:27:04 -04:00
Michael Heuberger
81866de229
Amend --always option to all git describe commands ( #2275 )
2023-09-02 06:59:39 -04:00
Joshua Tauberer
b3743a31e9
Add a status checks check that fail2ban is running using fail2ban-client
2023-01-15 10:17:10 -05:00
Hugh Secker-Walker
820a39b865
chore(python open): Refactor open and gzip.open to use context manager ( #2203 )
...
Co-authored-by: Hugh Secker-Walker <hsw+miac@hodain.net>
2023-01-15 08:28:43 -05:00
KiekerJan
0fc5105da5
Fixes to DNS lookups during status checks when there are timeouts, enforce timeouts better ( #2191 )
...
* add dns query handling changes
* replace exception pass with error message
* simplify dns exception catching
* Add not set case to blacklist lookup result handling
2023-01-15 08:20:08 -05:00
Steve Hay
7cda439c80
Port boto to boto3 and fix asyncio issue in the management daemon ( #2156 )
...
Co-authored-by: Steve Hay <hay.steve@gmail.com>
2022-09-17 07:57:12 -04:00
Rauno Moisto
78569e9a88
Fix DeprecationWarning in dnspython query vs resolve method
...
The resolve method disables resolving relative names by default. This change probably makes a7710e90
unnecessary. @JoshData added some additional changes from query to resolve.
2022-07-28 14:02:46 -04:00
Joshua Tauberer
99474b348f
Update backup to be compatible with duplicity 0.8.23
...
We were using duplicity 0.8.21-ppa202111091602~ubuntu1 from the duplicity PPA probably until June 5, which is when my box automatically updated to 0.8.23-ppa202205151528~ubuntu18.04.1. Starting with that version, two changes broke backups:
* The default s3 backend was changed to boto3. But boto3 depends on the AWS SDK which does not support Ubuntu 18.04, so we can't install it. Instead, we map s3: backup target URLs to the boto+s3 scheme which tells duplicity to use legacy boto. This should be reverted when we can switch to boto3.
* Contrary to the documentation, the s3 target no longer accepts a S3 hostname in the URL. It now reads the bucket from the hostname part of the URL. So we now drop the hostname from our target URL before passing it to duplicity and we pass the endpoint URL in a separate command-line argument. (The boto backend was dropped from duplicity's "uses_netloc" in 74d4cf44b1 (f5a07610d36bd242c3e5b98f8348879a468b866a_37_34)
, but other changes may be related.)
The change of target URL (due to both changes) seems to also cause duplicity to store cached data in a different directory within $STORAGE_ROOT/backup/cache, so on the next backup it will re-download cached manifest/signature files. Since the cache directory will still hold the prior data which is no longer needed, it might be a good idea to clear out the cache directory to save space. A system status checks message is added about that.
Fixes #2123
2022-06-12 08:17:48 -04:00
lamberete
6e40c69cb5
Error message using IPv4 instead of failing IPv6.
...
One of the error messages around IPv6 was using the IPv4 for the output, making the error message confusing.
2022-03-26 13:50:24 +01:00