diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-10-17 15:12:48 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-10-17 15:12:48 +0000 |
| commit | 0472b2410225927226272c5ecc14d1ab6cdb9f09 (patch) | |
| tree | 2d2c2fac46b2b155f5ae011e381c80f52ab209d4 /lib | |
| parent | 5ddbc3659d4a46bd9a688702668df0301d57ade1 (diff) | |
| download | puppet-0472b2410225927226272c5ecc14d1ab6cdb9f09.tar.gz puppet-0472b2410225927226272c5ecc14d1ab6cdb9f09.tar.xz puppet-0472b2410225927226272c5ecc14d1ab6cdb9f09.zip | |
First batch of fixes from running tests.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1797 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/puppet/type/pfile.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/puppet/type/pfile.rb b/lib/puppet/type/pfile.rb index 7f2ff798c..233d01da6 100644 --- a/lib/puppet/type/pfile.rb +++ b/lib/puppet/type/pfile.rb @@ -193,7 +193,8 @@ module Puppet autorequire(type) do if @states.include?(state) # The user/group states automatically converts to IDs - val = @states[state].shouldorig[0] + next unless should = @states[state].shouldorig + val = should[0] if val.is_a?(Integer) or val =~ /^\d+$/ nil else |
