Issue #12948 has been updated by Patrick Carlisle. Description updated
---------------------------------------- Bug #12948: undefined method `join' for :undef:Symbol https://projects.puppetlabs.com/issues/12948#change-56559 Author: Eslam El Husseiny Status: Unreviewed Priority: Normal Assignee: Category: templates Target version: Affected Puppet version: 2.7.9 Keywords: Branch: hi, i was trying to qualify variables in my modules <pre> MONGO_DATABASE_NAME = '<%=scope.lookupvar('module_name::params::mongodb_dbname')%>' <% if has_variable?("module_name::params::replicas") then %> connect(MONGO_DATABASE_NAME, host='mongodb://<%=scope.lookupvar('module_name::params::replicas').join(",")%>', username='<%=scope.lookupvar('module_name::params::mongodb_username')%>', password='<%=scope.lookupvar('module_name::params::mongodb_password')%>') <% else %> connect(MONGO_DATABASE_NAME, host='<%=scope.lookupvar('module_name::params::dbhost')%>', username='<%=scope.lookupvar('module_name::params::mongodb_username')%>', password='<%=scope.lookupvar('module_name::params::mongodb_password')%>') <% end %> </pre> and in params.pp <pre> $replicas = $mongodb_replicas $dbhost = $mongodb ? { '' => "$::ec2_local_hostname", default => "$mongodb" } </pre> and either $mongodb_replicas Or $mongodb are defined in nodes.pp for the time being i case of activating $mongodb_replicas every thing works fine but in case of activating $mongodb instead of $mongodb_replicas i got this error <pre> undefined method `join' for :undef:Symbol </pre> any ideas why this error appears, Thanks in advance -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
