Skip to content

Commit 4a400e2

Browse files
committed
puppet-lint: fix params_not_optional_with_undef
1 parent d311eb1 commit 4a400e2

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎manifests/agent/service/cron.pp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class puppet::agent::service::cron (
44
Boolean $enabled = false,
55
Optional[Integer[0,23]] $hour = undef,
6-
Variant[Integer[0,59], Array[Integer[0,59]], Undef] $minute = undef,
6+
Optional[Variant[Integer[0,59], Array[Integer[0,59]]]] $minute = undef,
77
) {
88
unless $puppet::runmode == 'unmanaged' or 'cron' in $puppet::unavailable_runmodes {
99
if $enabled {

‎manifests/agent/service/systemd.pp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class puppet::agent::service::systemd (
44
Boolean $enabled = false,
55
Optional[Integer[0,23]] $hour = undef,
6-
Variant[Integer[0,59], Array[Integer[0,59]], Undef] $minute = undef,
6+
Optional[Variant[Integer[0,59], Array[Integer[0,59]]]] $minute = undef,
77
Optional[String[1]] $timezone = undef,
88
) {
99
unless $puppet::runmode == 'unmanaged' or 'systemd.timer' in $puppet::unavailable_runmodes {

‎manifests/init.pp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@
618618
Boolean $usecacheonfailure = $puppet::params::usecacheonfailure,
619619
Enum['cron', 'service', 'systemd.timer', 'none', 'unmanaged'] $runmode = $puppet::params::runmode,
620620
Optional[Integer[0,23]] $run_hour = undef,
621-
Variant[Integer[0,59], Array[Integer[0,59]], Undef] $run_minute = undef,
621+
Optional[Variant[Integer[0,59], Array[Integer[0,59]]]] $run_minute = undef,
622622
Optional[String[1]] $run_timezone = undef,
623623
Array[Enum['cron', 'service', 'systemd.timer', 'none']] $unavailable_runmodes = $puppet::params::unavailable_runmodes,
624624
Optional[String] $cron_cmd = $puppet::params::cron_cmd,

0 commit comments

Comments
 (0)