diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-01-05 17:09:04 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-01-05 17:09:04 +0000 |
| commit | 704bd761057f075a0754bf6880bbb5c3b6014695 (patch) | |
| tree | 91c6b69e88a3fd41b21c9b3ae554f9651c237b01 /lib/puppet/util/posix.rb | |
| parent | e75671111b56e14ef6459bb783a261752efa0089 (diff) | |
| download | puppet-704bd761057f075a0754bf6880bbb5c3b6014695.tar.gz puppet-704bd761057f075a0754bf6880bbb5c3b6014695.tar.xz puppet-704bd761057f075a0754bf6880bbb5c3b6014695.zip | |
Fixing a few testing bugs that have crept in, and fixing a self-reference problem when configuring, graphing, and setting graphdir manually.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2052 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/util/posix.rb')
| -rwxr-xr-x | lib/puppet/util/posix.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/puppet/util/posix.rb b/lib/puppet/util/posix.rb index 37ec298bb..9131b394d 100755 --- a/lib/puppet/util/posix.rb +++ b/lib/puppet/util/posix.rb @@ -8,6 +8,10 @@ module Puppet::Util::POSIX end prefix = "get" + space.to_s if id.is_a?(Integer) + if id > 1000000 + Puppet.err "Tried to get %s field for silly id %s" % [field, id] + return nil + end method = (prefix + idfield(space).to_s).intern else method = (prefix + "nam").intern |
