Issue #4135 has been updated by James Turnbull.

Assignee deleted (Markus Roberts)
Branch set to 
https://github.com/nanliu/puppet/commit/a2ac7599015a9b53d304126d213f8387d78bd475


----------------------------------------
Bug #4135: pluginsync tries to parse readme files
https://projects.puppetlabs.com/issues/4135

Author: Dan Bode
Status: In Topic Branch Pending Merge
Priority: Normal
Assignee: 
Category: plumbing
Target version: 
Affected Puppet version: 0.25.5
Keywords: 
Branch: 
https://github.com/nanliu/puppet/commit/a2ac7599015a9b53d304126d213f8387d78bd475


I have created the following directory structure in a modulepath:

<pre>
test
`-- lib
    |-- facter
    |   |-- README.markdown
    |   `-- blah.rb
    `-- puppet
        |-- parser
        |   `-- functions
        |       `-- README.markdown
        |-- provider
        |   `-- README.markdown
        `-- type
            `-- REAME.markdown
</pre>

pluginsync appears to be trying to check the syntax of all files in the plugins 
dir (including the READMEs)

the content of all of the README files is 'blah'

notice the following errors below:

err: Could not load downloaded file 
/var/lib/puppet/lib/puppet/type/REAME.markdown: undefined local variable or 
method `blah' for main:Object

<pre>
# puppetd -t
info: Retrieving plugin
notice: /File[/var/lib/puppet/lib/facter]/ensure: created
notice: /File[/var/lib/puppet/lib/facter/README.markdown]/ensure: content 
changed '{md5}1d534ac77fc049de534dce45ba7b31b7' to 
'{md5}1d534ac77fc049de534dce45ba7b31b7'
notice: /File[/var/lib/puppet/lib/facter/blah.rb]/ensure: content changed 
'{md5}720c2650f67a95c9689bd0e5d713dfde' to 
'{md5}720c2650f67a95c9689bd0e5d713dfde'
notice: /File[/var/lib/puppet/lib/puppet]/ensure: created
notice: /File[/var/lib/puppet/lib/puppet/parser]/ensure: created
notice: /File[/var/lib/puppet/lib/puppet/parser/functions]/ensure: created
notice: 
/File[/var/lib/puppet/lib/puppet/parser/functions/README.markdown]/ensure: 
content changed '{md5}1d534ac77fc049de534dce45ba7b31b7' to 
'{md5}1d534ac77fc049de534dce45ba7b31b7'
notice: /File[/var/lib/puppet/lib/puppet/provider]/ensure: created
notice: /File[/var/lib/puppet/lib/puppet/provider/README.markdown]/ensure: 
content changed '{md5}1d534ac77fc049de534dce45ba7b31b7' to 
'{md5}1d534ac77fc049de534dce45ba7b31b7'
notice: /File[/var/lib/puppet/lib/puppet/type]/ensure: created
notice: /File[/var/lib/puppet/lib/puppet/type/REAME.markdown]/ensure: content 
changed '{md5}0d599f0ec05c3bda8c3b8a68c32a1b47' to 
'{md5}0d599f0ec05c3bda8c3b8a68c32a1b47'
info: Loading downloaded plugin /var/lib/puppet/lib/facter/README.markdown
err: Could not load downloaded file /var/lib/puppet/lib/facter/README.markdown: 
uninitialized constant BLAH
info: Loading downloaded plugin /var/lib/puppet/lib/facter/blah.rb
info: Loading downloaded plugin 
/var/lib/puppet/lib/puppet/parser/functions/README.markdown
err: Could not load downloaded file 
/var/lib/puppet/lib/puppet/parser/functions/README.markdown: uninitialized 
constant BLAH
info: Loading downloaded plugin 
/var/lib/puppet/lib/puppet/provider/README.markdown
err: Could not load downloaded file 
/var/lib/puppet/lib/puppet/provider/README.markdown: uninitialized constant BLAH
info: Loading downloaded plugin /var/lib/puppet/lib/puppet/type/REAME.markdown
err: Could not load downloaded file 
/var/lib/puppet/lib/puppet/type/REAME.markdown: undefined local variable or 
method `blah' for main:Object
info: Loading facts in blah
info: Loading facts in blah
info: Caching catalog for puppetclient
info: Applying configuration version '1277611559'
notice: Finished catalog run in 0.03 seconds
</pre>


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