Issue #17687 has been reported by Lee Lowder.

----------------------------------------
Bug #17687: Variables not accessible if classname is same as node name
https://projects.puppetlabs.com/issues/17687

Author: Lee Lowder
Status: Unreviewed
Priority: Normal
Assignee: 
Category: language
Target version: 
Affected Puppet version: 2.7.19
Keywords: 
Branch: 


While poking around at #1372 I came across a workaround, when then lead to the 
discovery of this one.

    llowder@ubuntu:~$ cat bugtest.pp
    class ubuntu {
      $foo = "bar"
      notice ("Class ubuntu")
    }
    node 'ubuntu' {
      class { 'ubuntu': }
      #include ::ubuntu
      notice ("Node ubuntu")
      notice ("class::ubuntu::foo is ${ubuntu::foo}")
    }
    #class { 'ubuntu': }

    llowder@ubuntu:~$ puppet apply --verbose bugtest.pp
    notice: Scope(Node[ubuntu]): Node ubuntu
    notice: Scope(Node[ubuntu]): class::ubuntu::foo is
    notice: Scope(Class[Ubuntu]): Class ubuntu
    info: Applying configuration version '1353018559'
    notice: Finished catalog run in 0.02 seconds
    
This is related to #1372, but I did not see a way to flag it as such.


-- 
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.

Reply via email to