nwops / puppet-retrospec

The only tool you need to generate puppet code, tests, modules, facts, types, providers, data and everything else.
https://www.retrospec-puppet.com/
GNU Affero General Public License v3.0
137 stars 27 forks source link

evaluation fails when parameters have logic #87

Closed logicminds closed 6 years ago

logicminds commented 6 years ago

The code causes the following issue undefined method first for :undef:symbol

class profiles::bad_code(
   String $role_name  = $::role.split('/')[0]
){

}