Skip to content

Commit

Permalink
Merge !1615: nits (see commits)
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Sep 16, 2024
2 parents 6f46c67 + 7af186d commit 07b2130
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,7 @@ pkg:alma-9:
pkg:arch:
<<: *pkg_test_user
image: $CI_REGISTRY/packaging/apkg/full/arch
allow_failure: true # our image not starting up currently
before_script:
- pacman -Syy

Expand Down
2 changes: 0 additions & 2 deletions doc/user/gettingstarted-install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ Please, follow the instructions for your packaging system:

Please follow https://pkg.labs.nic.cz/doc/?project=knot-resolver

For Ubuntu it is also possible to use https://launchpad.net/~cz.nic-labs/+archive/ubuntu/knot-resolver.

.. tab:: .rpm

Please follow https://copr.fedorainfracloud.org/coprs/g/cznic/knot-resolver/
Expand Down
4 changes: 2 additions & 2 deletions python/knot_resolver/datamodel/cache_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,5 @@ class CacheSchema(ConfigSchema):
prefetch: PrefetchSchema = PrefetchSchema()

def _validate(self):
if self.ttl_min.seconds() >= self.ttl_max.seconds():
raise ValueError("'ttl-max' must be larger then 'ttl-min'")
if self.ttl_min.seconds() > self.ttl_max.seconds():
raise ValueError("'ttl-max' can't be smaller than 'ttl-min'")

0 comments on commit 07b2130

Please sign in to comment.