File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -107,14 +107,10 @@ def init_db_opts_workspace(xopts)
107
107
def get_notes ( xopts )
108
108
::ActiveRecord ::Base . connection_pool . with_connection {
109
109
opts , wspace = init_db_opts_workspace ( xopts )
110
-
111
- ret = { }
112
- ret [ :note ] = [ ]
110
+ notes = [ ]
113
111
114
112
host = self . framework . db . get_host ( opts )
115
-
116
- return ret if not host
117
- notes = [ ]
113
+ return notes if not host
118
114
119
115
if opts [ :proto ] && opts [ :port ]
120
116
services = [ ]
@@ -833,6 +829,9 @@ def rpc_get_service(xopts)
833
829
# @example Here's how you would use this from the client:
834
830
# rpc.call('db.get_note', {:proto => 'tcp', :port => 80})
835
831
def rpc_get_note ( xopts )
832
+ ret = { }
833
+ ret [ :note ] = [ ]
834
+
836
835
notes = get_notes ( xopts )
837
836
838
837
notes . each do |n |
You can’t perform that action at this time.
0 commit comments