Skip to content

Commit 8fdcbf4

Browse files
author
Jonathan Freedman
committed
* zenoss v3.2.1 requires params for device_router even if it's empty :wink2:
1 parent 2a1f7aa commit 8fdcbf4

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5.2
1+
0.5.3

lib/zenoss/jsonapi/device_router.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def get_devices(uid = '/zport/dmd/Devices', opts = {})
4141
data[:sort] = opts[:sort_key] if opts.has_key? :sort_key
4242
data[:dir] = opts[:sort_ord] if opts.has_key? :sort_ord
4343
data[:params] = opts[:params] if opts.has_key? :params
44+
data[:params] ||= {}
4445
resp = json_request('DeviceRouter', 'getDevices', [data])
4546

4647
devs = []

0 commit comments

Comments
 (0)