puppet-windows_firewall icon indicating copy to clipboard operation
puppet-windows_firewall copied to clipboard

display_name does not default to resource name on version 2.0.0

Open peterbuniq opened this issue 6 years ago • 4 comments

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 2018.1
  • Ruby: N/A
  • Distribution: N/A
  • Module version: 2.0.0

How to reproduce (e.g Puppet code you use)

windows_firewall::exception { "510 allow http in ${label}":
  ensure       => present,
  direction    => 'in',
  action       => 'Allow',
  enabled      => 'yes',
  protocol     => "${settings['protocol']}",
  local_port   => "${settings['port']}",
  remote_port  => 'any',
  description  => 'Allow inbound http',
}

What are you seeing

Error at line 184 in the windows_firewall module. Duplicate declaration - Exec[set rule ]

What behaviour did you expect instead

display_name to be set from the resource title, as per the module documentation.

Output log

Any additional information you'd like to impart

peterbuniq avatar May 31 '18 23:05 peterbuniq