[Pkg-puppet-devel] Bug#669650: puppet: help should work w/o inspecting the PATH

Toni Mueller support at oeko.net
Fri Apr 20 18:36:13 UTC 2012


Package: puppet
Version: 2.7.13-1
Severity: normal


Hi,

today I wanted to learn something about puppet and said:


$ puppet help
/usr/lib/ruby/1.8/puppet/util.rb:173:in `expand_path': user staff doesn't exist (ArgumentError)
        from /usr/lib/ruby/1.8/puppet/util.rb:173:in `which'
        from /usr/lib/ruby/1.8/puppet/util.rb:172:in `each'
        from /usr/lib/ruby/1.8/puppet/util.rb:172:in `which'
        from /usr/lib/ruby/1.8/puppet/defaults.rb:783
        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /usr/lib/ruby/1.8/puppet.rb:99
        from /usr/lib/ruby/1.8/puppet/interface.rb:1:in `require'
        from /usr/lib/ruby/1.8/puppet/interface.rb:1
        from /usr/lib/ruby/1.8/puppet/face.rb:11:in `require'
        from /usr/lib/ruby/1.8/puppet/face.rb:11
        from /usr/lib/ruby/1.8/puppet/application/face_base.rb:2:in `require'
        from /usr/lib/ruby/1.8/puppet/application/face_base.rb:2
        from /usr/lib/ruby/1.8/puppet/application/help.rb:1:in `require'
        from /usr/lib/ruby/1.8/puppet/application/help.rb:1
        from /usr/lib/ruby/1.8/puppet/util/command_line.rb:54:in `require'
        from /usr/lib/ruby/1.8/puppet/util/command_line.rb:54:in `require_application'
        from /usr/lib/ruby/1.8/puppet/util/command_line.rb:59:in `execute'
        from /usr/bin/puppet:4
$

It turned out that I had a legacy path in my PATH, like ":~staff/...:".
I think it's OK to emit a warning in such a case, but a crash is a bit
too harsh. My Ruby is nonexistent atm, so there's no patch.



Kind regards,
--Toni++



-- System Information:
Debian Release: 6.0.4
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'proposed-updates'), (450, 'testing'), (250, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-openvz-686 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages puppet depends on:
ii  dpkg                 1.15.8.12           Debian package management system
ii  puppet-common        2.7.13-1            Centralized configuration manageme
ii  ruby1.8              1.8.7.302-2squeeze1 Interpreter of object-oriented scr

Versions of packages puppet recommends:
ii  ruby [rdoc]                   4.5        An interpreter of object-oriented 

Versions of packages puppet suggests:
ii  etckeeper                     0.48       store /etc in git, mercurial, bzr 
ii  puppet-el                     2.7.13-1   syntax highlighting for puppet man
pn  vim-puppet                    <none>     (no description available)

-- no debconf information





More information about the Pkg-puppet-devel mailing list