Permalink
Browse files

simplify fix for data[:params]

  • Loading branch information...
1 parent 16057a2 commit cc7d7ca7d95575f3aae7e2d6c6a5ee54a4a51c87 @zenchild zenchild committed Mar 5, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/zenoss/jsonapi/device_router.rb
@@ -40,8 +40,7 @@ def get_devices(uid = '/zport/dmd/Devices', opts = {})
data[:limit] = opts[:limit] if opts.has_key? :limit
data[:sort] = opts[:sort_key] if opts.has_key? :sort_key
data[:dir] = opts[:sort_ord] if opts.has_key? :sort_ord
- data[:params] = opts[:params] if opts.has_key? :params
- data[:params] ||= {}
+ data[:params] = opts[:params] || {}
resp = json_request('DeviceRouter', 'getDevices', [data])
devs = []

0 comments on commit cc7d7ca

Please sign in to comment.