diff options
author | Adam Jacob <adam@opscode.com> | 2009-06-01 14:54:28 -0700 |
---|---|---|
committer | Adam Jacob <adam@opscode.com> | 2009-06-01 14:54:28 -0700 |
commit | d01a56cb1df58d9e17a8f373087691b22c14d0ce (patch) | |
tree | 08ad7f53bad52a3adaff0627d68e1b97562391cd /chef/lib/chef/couchdb.rb | |
parent | e47b02d3a45c7932c33f45acdfb61bb9d4f73da2 (diff) | |
download | chef-d01a56cb1df58d9e17a8f373087691b22c14d0ce.tar.gz |
Adding updated status page, now using computed couchdb view
Diffstat (limited to 'chef/lib/chef/couchdb.rb')
-rw-r--r-- | chef/lib/chef/couchdb.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chef/lib/chef/couchdb.rb b/chef/lib/chef/couchdb.rb index f284b5833c..10f43b72c8 100644 --- a/chef/lib/chef/couchdb.rb +++ b/chef/lib/chef/couchdb.rb @@ -146,7 +146,7 @@ class Chef def get_view(design, view, options={}) view_string = view_uri(design, view) - view_string << "?" if options.length + view_string << "?" if options.length != 0 first = true; options.each { |k,v| view_string << "#{first ? '' : '&'}#{k}=#{URI.escape(v.to_json)}"; first = false } @rest.get_rest(view_string) |