summaryrefslogtreecommitdiff
path: root/spec/fixtures/test/manifests/validate_legacy.pp
blob: 706df888e7a1580ce95bdf9bc13fc3bbc2f80f6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Class to test stdlib validate_legacy function

class test::validate_legacy(
  $type,
  $prev_validation,
  $value,
  $previous_arg1,
  $previous_arg2 = undef,
  ) {

  if $previous_arg2 == undef {
    validate_legacy( $type, $prev_validation, $value, $previous_arg1 )
  } else {
    validate_legacy( $type, $prev_validation, $value, $previous_arg1, $previous_arg2 )
  }
  notice("Success")

}