Projet

Général

Profil

Révision de3e7bb0

IDde3e7bb061a74f99f7028cff9af724f9c4278fcb
Parent 324b6851
Enfant 943ecf89

Ajouté par Tim Meusel il y a presque 4 ans

fix datatype for $dport

Voir les différences:

manifests/rules/dnat4.pp
8 8
  String[1] $chain = 'default_fwd',
9 9
  Optional[String[1]] $iif = undef,
10 10
  Enum['tcp','udp'] $proto = 'tcp',
11
  Optional[Variant[String,Stdlib::Port]] $dport = '',
11
  Optional[Variant[String,Stdlib::Port]] $dport = undef,
12 12
  Enum['present','absent'] $ensure = 'present',
13 13
  # lint:endignore
14 14
) {
......
17 17
    default => "iifname ${iif} ",
18 18
  }
19 19
  $filter_port = $dport ? {
20
    ''      => $port,
20
    undef   => $port,
21 21
    default => $dport,
22 22
  }
23 23
  $nat_port = $dport ? {
24
    ''      => '',
24
    undef   => '',
25 25
    default => ":${dport}",
26 26
  }
27 27

  

Formats disponibles : Unified diff