From a4d1274793b3fbb3e933aa2db1ca06d6afead9f0 Mon Sep 17 00:00:00 2001 From: Vadym Chepkov Date: Sun, 7 Jul 2024 09:31:57 -0400 Subject: [PATCH] allow service time settings to accept Integer values --- REFERENCE.md | 16 ++++++++-------- types/unit/service.pp | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/REFERENCE.md b/REFERENCE.md index 14988442..8f61754e 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -2903,16 +2903,16 @@ Struct[{ Optional['DevicePolicy'] => Enum['auto','closed','strict'], Optional['Slice'] => String[1], Optional['Delegate'] => Boolean, - Optional['RestartSec'] => String, - Optional['TimeoutStartSec'] => String, - Optional['TimeoutStopSec'] => String, - Optional['TimeoutAbortSec'] => String, - Optional['TimeoutSec'] => String, + Optional['RestartSec'] => Variant[Integer[0],String], + Optional['TimeoutStartSec'] => Variant[Integer[0],String], + Optional['TimeoutStopSec'] => Variant[Integer[0],String], + Optional['TimeoutAbortSec'] => Variant[Integer[0],String], + Optional['TimeoutSec'] => Variant[Integer[0],String], Optional['TimeoutStartFailureMode'] => Enum['terminate', 'abort', 'kill'], Optional['TimeoutStopFailureMode'] => Enum['terminate', 'abort', 'kill'], - Optional['RuntimeMaxSec'] => String, - Optional['RuntimeRandomizedExtraSec'] => String, - Optional['WatchdogSec'] => String, + Optional['RuntimeMaxSec'] => Variant[Integer[0],String], + Optional['RuntimeRandomizedExtraSec'] => Variant[Integer[0],String], + Optional['WatchdogSec'] => Variant[Integer[0],String], Optional['Restart'] => Enum['no', 'on-success', 'on-failure', 'on-abnormal', 'on-watchdog', 'on-abort', 'always'], Optional['SuccessExitStatus'] => String, Optional['RestartPreventExitStatus'] => String, diff --git a/types/unit/service.pp b/types/unit/service.pp index b6bb83c1..554283b8 100644 --- a/types/unit/service.pp +++ b/types/unit/service.pp @@ -72,16 +72,16 @@ Optional['DevicePolicy'] => Enum['auto','closed','strict'], Optional['Slice'] => String[1], Optional['Delegate'] => Boolean, - Optional['RestartSec'] => String, - Optional['TimeoutStartSec'] => String, - Optional['TimeoutStopSec'] => String, - Optional['TimeoutAbortSec'] => String, - Optional['TimeoutSec'] => String, + Optional['RestartSec'] => Variant[Integer[0],String], + Optional['TimeoutStartSec'] => Variant[Integer[0],String], + Optional['TimeoutStopSec'] => Variant[Integer[0],String], + Optional['TimeoutAbortSec'] => Variant[Integer[0],String], + Optional['TimeoutSec'] => Variant[Integer[0],String], Optional['TimeoutStartFailureMode'] => Enum['terminate', 'abort', 'kill'], Optional['TimeoutStopFailureMode'] => Enum['terminate', 'abort', 'kill'], - Optional['RuntimeMaxSec'] => String, - Optional['RuntimeRandomizedExtraSec'] => String, - Optional['WatchdogSec'] => String, + Optional['RuntimeMaxSec'] => Variant[Integer[0],String], + Optional['RuntimeRandomizedExtraSec'] => Variant[Integer[0],String], + Optional['WatchdogSec'] => Variant[Integer[0],String], Optional['Restart'] => Enum['no', 'on-success', 'on-failure', 'on-abnormal', 'on-watchdog', 'on-abort', 'always'], Optional['SuccessExitStatus'] => String, Optional['RestartPreventExitStatus'] => String,