Created
October 13, 2010 15:53
-
-
Save spheromak/624313 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Wed, 13 Oct 2010 15:42:29 +0000] ERROR: Exception handlers complete | |
| [Wed, 13 Oct 2010 15:42:29 +0000] ERROR: Re-raising exception: NoMethodError - undefined method `first' for #<StringIO:0xf74be824> | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider/mount/mount.rb:187:in `device_real' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/mixin/command/unix.rb:201:in `[]' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/mixin/command/unix.rb:201:in `popen4' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider/mount/mount.rb:186:in `device_real' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider/mount/mount.rb:42:in `load_current_resource' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:43:in `build_provider' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:50:in `run_action' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:109:in `converge' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:108:in `each' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:108:in `converge' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection.rb:94:in `execute_each_resource' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `step' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:82:in `converge' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/client.rb:304:in `converge' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/client.rb:106:in `run' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application/client.rb:212:in `run_application' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application/client.rb:202:in `loop' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application/client.rb:202:in `run_application' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application.rb:62:in `run' | |
| /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/chef-client:26 | |
| /usr/bin/chef-client:19:in `load' | |
| /usr/bin/chef-client:19 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def device_real | |
| if @real_device == nil | |
| if @new_resource.device_type == :device | |
| @real_device = @new_resource.device | |
| else | |
| @real_device = "" | |
| Chef::Log.info "running /sbin/findfs #{device_fstab}" | |
| status = popen4("/sbin/findfs #{device_fstab}") do |pid, stdin, stdout, stderr| | |
| device_line = stdout.first # stdout.first consumes | |
| @real_device = device_line.chomp unless device_line.nil? | |
| end | |
| end | |
| end | |
| @real_device | |
| end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment