infochimps-labs/ironfan-pantry — pull request #2 by jwhitley (2012-06-04 22:54:01+00:00)
Title: Fix exception when `selects :single` is used

If params[:selects] == :single, prior to this change volumes was turned into
an array instead of a hash. This caused vol_info to be nil on line 76,
resulting in an exception when '[]' was called on it.

I hit this when volume_dirs was called from `rabbitmq:server` and [another user here](http://community.opscode.com/chat/chef/2012-04-20) (search for "volume_dirs") appears to have hit this on `elasticsearch::server`, [like so](https://gist.github.com/98f52689acd474e10bde).