Skip to content

Commit

Permalink
replace validate_* with datatypes in resource::map
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Nov 20, 2017
1 parent 275e6bb commit 60ef6cb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions manifests/resource/map.pp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@


define nginx::resource::map (
String $string,
String[2] $string,
Variant[Array, Hash] $mappings,
Optional[String] $default = undef,
Enum['absent', 'present'] $ensure = 'present',
Expand All @@ -83,9 +83,6 @@
fail('You must include the nginx base class before using any defined resources')
}

validate_re($string, '^.{2,}$',
"Invalid string value [${string}]. Expected a minimum of 2 characters.")

$root_group = $::nginx::root_group
$conf_dir = "${::nginx::conf_dir}/conf.d"

Expand Down

0 comments on commit 60ef6cb

Please sign in to comment.