Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selector with undef case fails #77

Closed
PierreR opened this issue Oct 22, 2014 · 1 comment
Closed

selector with undef case fails #77

PierreR opened this issue Oct 22, 2014 · 1 comment

Comments

@PierreR
Copy link
Collaborator

PierreR commented Oct 22, 2014

From #65, I have extracted what looks like a bug to me

class application::profile::dummytest(
  $var1 = undef,
){

 $temp_var = $var1 ? {
   undef   => 'value',
   default => $var1
 }
 notify{"temp_var is ${temp_var}":}
}

This gives the error:

presources puppetmaster testing -t 'notify'                          
Don't know how to convert this to a string:
undef at # "./modules/application/manifests/profile/dummytest.pp" (line 9, column 9)
puppetresources: error!

´$temp_varshould be set to 'value' because$var1` is set to undef.

This idiom is used in jfryman nginx module

@PierreR
Copy link
Collaborator Author

PierreR commented Dec 20, 2014

This works now in permissive mode

@PierreR PierreR closed this as completed Dec 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant