From 8a5a2672c295b752860b184e88ba56bec800c165 Mon Sep 17 00:00:00 2001 From: Cosmin Tupangiu Date: Wed, 7 Aug 2024 13:15:29 +0200 Subject: [PATCH] lenses/chrony.aug: Add support for leapseclist This commit adds support for "leapseclist" option. Fixes: https://github.com/hercules-team/augeas/issues/840 Signed-off-by: Cosmin Tupangiu --- lenses/chrony.aug | 1 + lenses/tests/test_chrony.aug | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lenses/chrony.aug b/lenses/chrony.aug index d1c295318..bb34bfb51 100644 --- a/lenses/chrony.aug +++ b/lenses/chrony.aug @@ -191,6 +191,7 @@ module Chrony = | "ntpsigndsocket" | "pidfile" | "ptpport" | "port" | "reselectdist" | "rtcautotrim" | "rtcdevice" | "rtcfile" | "sched_priority" | "stratumweight" | "user" + | "leapseclist" (************************************************************************ * Group: Make some sub-lenses for use in later lenses diff --git a/lenses/tests/test_chrony.aug b/lenses/tests/test_chrony.aug index 691e63f73..f4a4be357 100644 --- a/lenses/tests/test_chrony.aug +++ b/lenses/tests/test_chrony.aug @@ -89,6 +89,7 @@ ntsprocesses 2 ntsrefresh 86400 ntsrotate 86400 ptpport 319 +leapseclist /usr/share/zoneinfo/leap-seconds.list " test Chrony.lns get exampleconf = @@ -317,6 +318,7 @@ ptpport 319 { "ntsrefresh" = "86400" } { "ntsrotate" = "86400" } { "ptpport" = "319" } + { "leapseclist" = "/usr/share/zoneinfo/leap-seconds.list" } (* Local Variables: *)