Message ID | 20241021163849.1265183-2-michael.tremer@ipfire.org |
---|---|
State | Staged |
Commit | a81eefa265610d4129961979182bf8a8bb6230f9 |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R10" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4XXLc25WHRz3wmx for <patchwork@web04.haj.ipfire.org>; Mon, 21 Oct 2024 16:38:58 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature ECDSA (secp384r1)) (Client CN "mail02.haj.ipfire.org", Issuer "E6" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4XXLbz2V6cz1Yq; Mon, 21 Oct 2024 16:38:55 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4XXLbz0V1fz34Hb; Mon, 21 Oct 2024 16:38:55 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R10" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4XXLbw2LtXz303Q for <development@lists.ipfire.org>; Mon, 21 Oct 2024 16:38:52 +0000 (UTC) Received: from michael.haj.ipfire.org (michael.haj.ipfire.org [172.28.1.242]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature ECDSA (secp384r1)) (Client CN "michael.haj.ipfire.org", Issuer "E6" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4XXLbv6Y4bz1Yq; Mon, 21 Oct 2024 16:38:51 +0000 (UTC) Received: by michael.haj.ipfire.org (Postfix, from userid 0) id 4XXLbv4TWQzTgJd; Mon, 21 Oct 2024 16:38:51 +0000 (UTC) From: Michael Tremer <michael.tremer@ipfire.org> To: development@lists.ipfire.org Subject: [PATCH 2/4] unbound-dhcp-leases-bridge: Fix typo Date: Mon, 21 Oct 2024 16:38:47 +0000 Message-Id: <20241021163849.1265183-2-michael.tremer@ipfire.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241021163849.1265183-1-michael.tremer@ipfire.org> References: <20241021163849.1265183-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: 7TVUTQBQLHKRSEJNOYZERMQLFPBDA4PO X-Message-ID-Hash: 7TVUTQBQLHKRSEJNOYZERMQLFPBDA4PO X-MailFrom: root@michael.haj.ipfire.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Michael Tremer <michael.tremer@ipfire.org> X-Mailman-Version: 3.3.8 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> Archived-At: <https://lists.ipfire.org/hyperkitty/list/development@lists.ipfire.org/message/7TVUTQBQLHKRSEJNOYZERMQLFPBDA4PO/> List-Archive: <https://lists.ipfire.org/hyperkitty/list/development@lists.ipfire.org/> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Owner: <mailto:development-owner@lists.ipfire.org> List-Post: <mailto:development@lists.ipfire.org> List-Subscribe: <mailto:development-join@lists.ipfire.org> List-Unsubscribe: <mailto:development-leave@lists.ipfire.org> |
Series | [1/4] unbound-dhcp-leases-bridge: Don't export expired leases to Unbound | |
Commit Message
Michael Tremer
Oct. 21, 2024, 4:38 p.m. UTC
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
config/unbound/unbound-dhcp-leases-bridge | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org> Am 21.10.2024 um 18:38 schrieb Michael Tremer: > Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> > --- > config/unbound/unbound-dhcp-leases-bridge | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/config/unbound/unbound-dhcp-leases-bridge b/config/unbound/unbound-dhcp-leases-bridge > index bc944a073..2cbdaa004 100644 > --- a/config/unbound/unbound-dhcp-leases-bridge > +++ b/config/unbound/unbound-dhcp-leases-bridge > @@ -279,9 +279,9 @@ class UnboundDHCPLeasesBridge(object): > self.unbound.update_dhcp_leases([l for l in self.leases if not l.has_expired()]) > > def _add_lease(self, lease): > - # Skip leases without an FQDN > + # Skip leases without a FQDN > if not lease.fqdn: > - log.debug("Skipping lease without an FQDN: %s" % lease) > + log.debug("Skipping lease without a FQDN: %s" % lease) > return > > # Skip any leases that also are a static host
Technically, I think this update is incorrect and "an" is correct - https://www.reddit.com/r/grammar/comments/riql6s/a_or_an_before_acronym_that_is_pronounced_with_a/ and https://www.grammar.com/a-vs-an-when-to-use. But TBH, I really don't think it is too important. Nick On 21/10/2024 17:44, Bernhard Bitsch wrote: > > Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org> > > Am 21.10.2024 um 18:38 schrieb Michael Tremer: >> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> >> --- >> config/unbound/unbound-dhcp-leases-bridge | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/config/unbound/unbound-dhcp-leases-bridge >> b/config/unbound/unbound-dhcp-leases-bridge >> index bc944a073..2cbdaa004 100644 >> --- a/config/unbound/unbound-dhcp-leases-bridge >> +++ b/config/unbound/unbound-dhcp-leases-bridge >> @@ -279,9 +279,9 @@ class UnboundDHCPLeasesBridge(object): >> self.unbound.update_dhcp_leases([l for l in self.leases if >> not l.has_expired()]) >> def _add_lease(self, lease): >> - # Skip leases without an FQDN >> + # Skip leases without a FQDN >> if not lease.fqdn: >> - log.debug("Skipping lease without an FQDN: %s" % lease) >> + log.debug("Skipping lease without a FQDN: %s" % lease) >> return >> # Skip any leases that also are a static host >
I felt that “an” was correct, too. But only when I say it out loud :) I am happy to have this patch dropped. > On 21 Oct 2024, at 18:14, Nick Howitt <nick@howitts.co.uk> wrote: > > Technically, I think this update is incorrect and "an" is correct - https://www.reddit.com/r/grammar/comments/riql6s/a_or_an_before_acronym_that_is_pronounced_with_a/ and https://www.grammar.com/a-vs-an-when-to-use. But TBH, I really don't think it is too important. > > Nick > > > On 21/10/2024 17:44, Bernhard Bitsch wrote: >> >> Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org> >> >> Am 21.10.2024 um 18:38 schrieb Michael Tremer: >>> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> >>> --- >>> config/unbound/unbound-dhcp-leases-bridge | 4 ++-- >>> 1 file changed, 2 insertions(+), 2 deletions(-) >>> >>> diff --git a/config/unbound/unbound-dhcp-leases-bridge b/config/unbound/unbound-dhcp-leases-bridge >>> index bc944a073..2cbdaa004 100644 >>> --- a/config/unbound/unbound-dhcp-leases-bridge >>> +++ b/config/unbound/unbound-dhcp-leases-bridge >>> @@ -279,9 +279,9 @@ class UnboundDHCPLeasesBridge(object): >>> self.unbound.update_dhcp_leases([l for l in self.leases if not l.has_expired()]) >>> def _add_lease(self, lease): >>> - # Skip leases without an FQDN >>> + # Skip leases without a FQDN >>> if not lease.fqdn: >>> - log.debug("Skipping lease without an FQDN: %s" % lease) >>> + log.debug("Skipping lease without a FQDN: %s" % lease) >>> return >>> # Skip any leases that also are a static host >> >
If this is any help, I also always use “an” when in combination with an acronym that is pronounced with a vowel sound. I’d also say it isn’t terribly important, as mentioned already by Nick, and it doesn’t stick out to me as an error either way. FWIW, the same rule does apply with letter sounds: “an F” is the same as “an eff”. “…an FQDN…” “…an SOP…” “…a PDF…” “…a BFH…” I do wonder about “UFO”, and I wouldn’t say “an UFO”, so your guess is as good as mine there. I don’t think I cleared that up at all, but it’s English, so that’s probably par for the course and a sign I’m on the right track. Tom > On Oct 21, 2024, at 1:14 PM, Nick Howitt <nick@howitts.co.uk> wrote: > > Technically, I think this update is incorrect and "an" is correct - https://www.reddit.com/r/grammar/comments/riql6s/a_or_an_before_acronym_that_is_pronounced_with_a/ and https://www.grammar.com/a-vs-an-when-to-use. But TBH, I really don't think it is too important. > > Nick > > > On 21/10/2024 17:44, Bernhard Bitsch wrote: >> >> Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org> <mailto:bbitsch@ipfire.org> >> >> Am 21.10.2024 um 18:38 schrieb Michael Tremer: >>> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> <mailto:michael.tremer@ipfire.org> >>> --- >>> config/unbound/unbound-dhcp-leases-bridge | 4 ++-- >>> 1 file changed, 2 insertions(+), 2 deletions(-) >>> >>> diff --git a/config/unbound/unbound-dhcp-leases-bridge b/config/unbound/unbound-dhcp-leases-bridge >>> index bc944a073..2cbdaa004 100644 >>> --- a/config/unbound/unbound-dhcp-leases-bridge >>> +++ b/config/unbound/unbound-dhcp-leases-bridge >>> @@ -279,9 +279,9 @@ class UnboundDHCPLeasesBridge(object): >>> self.unbound.update_dhcp_leases([l for l in self.leases if not l.has_expired()]) >>> def _add_lease(self, lease): >>> - # Skip leases without an FQDN >>> + # Skip leases without a FQDN >>> if not lease.fqdn: >>> - log.debug("Skipping lease without an FQDN: %s" % lease) >>> + log.debug("Skipping lease without a FQDN: %s" % lease) >>> return >>> # Skip any leases that also are a static host >> >
If I understand the rules cited, is it a user or an user? Just to choose an example, which is apparent frequently. On 21.10.24 21:38, Tom Rymes <tom@rymes.net> wrote: > If this is any help, I also always use “an” when in combination with an acronym that is pronounced with a vowel sound. I’d also say it isn’t terribly important, as mentioned already by Nick, and it doesn’t stick out to me as an error either way. > > FWIW, the same rule does apply with letter sounds: “an F” is the same as “an eff”. > > “…an FQDN…” > “…an SOP…” > > “…a PDF…” > “…a BFH…” > > I do wonder about “UFO”, and I wouldn’t say “an UFO”, so your guess is as good as mine there. > > I don’t think I cleared that up at all, but it’s English, so that’s probably par for the course and a sign I’m on the right track. > > Tom > > > On Oct 21, 2024, at 1:14 PM, Nick Howitt <nick@howitts.co.uk> wrote: > > > > Technically, I think this update is incorrect and "an" is correct - https://www.reddit.com/r/grammar/comments/riql6s/a_or_an_before_acronym_that_is_pronounced_with_a/ and https://www.grammar.com/a-vs-an-when-to-use. But TBH, I really don't think it is too important. > > > > Nick > > > > > > On 21/10/2024 17:44, Bernhard Bitsch wrote: > >> > >> Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org> <mailto:bbitsch@ipfire.org> > >> > >> Am 21.10.2024 um 18:38 schrieb Michael Tremer: > >>> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> <mailto:michael.tremer@ipfire.org> > >>> --- > >>> config/unbound/unbound-dhcp-leases-bridge | 4 ++-- > >>> 1 file changed, 2 insertions(+), 2 deletions(-) > >>> > >>> diff --git a/config/unbound/unbound-dhcp-leases-bridge b/config/unbound/unbound-dhcp-leases-bridge > >>> index bc944a073..2cbdaa004 100644 > >>> --- a/config/unbound/unbound-dhcp-leases-bridge > >>> +++ b/config/unbound/unbound-dhcp-leases-bridge > >>> @@ -279,9 +279,9 @@ class UnboundDHCPLeasesBridge(object): > >>> self.unbound.update_dhcp_leases([l for l in self.leases if not l.has_expired()]) > >>> def _add_lease(self, lease): > >>> - # Skip leases without an FQDN > >>> + # Skip leases without a FQDN > >>> if not lease.fqdn: > >>> - log.debug("Skipping lease without an FQDN: %s" % lease) > >>> + log.debug("Skipping lease without a FQDN: %s" % lease) > >>> return > >>> # Skip any leases that also are a static host > >> > > > > >
It’s “a user”, because “an” is used when the sound is a vowel sound, and the “y” sound of “user” (and “UFO” in my earlier example) is not a vowel sound, despite the fact that “u” is a vowel (and according to the rhyme I learned as a child) Y is sometimes a vowel. Basically, a/an depends on the sound of the word when spoken, not the letter itself. Another good example would be letter sounds (again, I know I already mentioned this), where “an” is used before consonants that are sounded as vowels: “An F”, “an H”, “an L”, “an M”, “an N”, “an R”, and “an X” Meanwhile “a U” and “a Y”. This link has more examples, including unsounded “H”, as in honor (which used “an”): https://owl.purdue.edu/owl/general_writing/grammar/articles_a_versus_an.html It’s English, it’s not supposed to make sense. Tom > On Oct 21, 2024, at 4:02 PM, bbitsch@ipfire.org wrote: > > If I understand the rules cited, is it a user or an user? Just to choose an example, which is apparent frequently. > > On 21.10.24 21:38, Tom Rymes <tom@rymes.net> wrote: >> If this is any help, I also always use “an” when in combination with an acronym that is pronounced with a vowel sound. I’d also say it isn’t terribly important, as mentioned already by Nick, and it doesn’t stick out to me as an error either way. >> FWIW, the same rule does apply with letter sounds: “an F” is the same as “an eff”. >> “…an FQDN…” >> “…an SOP…” >> “…a PDF…” >> “…a BFH…” >> I do wonder about “UFO”, and I wouldn’t say “an UFO”, so your guess is as good as mine there. >> I don’t think I cleared that up at all, but it’s English, so that’s probably par for the course and a sign I’m on the right track. >> Tom >> > On Oct 21, 2024, at 1:14 PM, Nick Howitt <nick@howitts.co.uk> wrote: >> > >> > Technically, I think this update is incorrect and "an" is correct - https://www.reddit.com/r/grammar/comments/riql6s/a_or_an_before_acronym_that_is_pronounced_with_a/ and https://www.grammar.com/a-vs-an-when-to-use. But TBH, I really don't think it is too important. >> > >> > Nick >> > >> > >> > On 21/10/2024 17:44, Bernhard Bitsch wrote: >> >> >> >> Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org> <mailto:bbitsch@ipfire.org> >> >> >> >> Am 21.10.2024 um 18:38 schrieb Michael Tremer: >> >>> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> <mailto:michael.tremer@ipfire.org> >> >>> --- >> >>> config/unbound/unbound-dhcp-leases-bridge | 4 ++-- >> >>> 1 file changed, 2 insertions(+), 2 deletions(-) >> >>> >> >>> diff --git a/config/unbound/unbound-dhcp-leases-bridge b/config/unbound/unbound-dhcp-leases-bridge >> >>> index bc944a073..2cbdaa004 100644 >> >>> --- a/config/unbound/unbound-dhcp-leases-bridge >> >>> +++ b/config/unbound/unbound-dhcp-leases-bridge >> >>> @@ -279,9 +279,9 @@ class UnboundDHCPLeasesBridge(object): >> >>> self.unbound.update_dhcp_leases([l for l in self.leases if not l.has_expired()]) >> >>> def _add_lease(self, lease): >> >>> - # Skip leases without an FQDN >> >>> + # Skip leases without a FQDN >> >>> if not lease.fqdn: >> >>> - log.debug("Skipping lease without an FQDN: %s" % lease) >> >>> + log.debug("Skipping lease without a FQDN: %s" % lease) >> >>> return >> >>> # Skip any leases that also are a static host >> >> >> >
diff --git a/config/unbound/unbound-dhcp-leases-bridge b/config/unbound/unbound-dhcp-leases-bridge index bc944a073..2cbdaa004 100644 --- a/config/unbound/unbound-dhcp-leases-bridge +++ b/config/unbound/unbound-dhcp-leases-bridge @@ -279,9 +279,9 @@ class UnboundDHCPLeasesBridge(object): self.unbound.update_dhcp_leases([l for l in self.leases if not l.has_expired()]) def _add_lease(self, lease): - # Skip leases without an FQDN + # Skip leases without a FQDN if not lease.fqdn: - log.debug("Skipping lease without an FQDN: %s" % lease) + log.debug("Skipping lease without a FQDN: %s" % lease) return # Skip any leases that also are a static host