need return error in some cases in sdkserver
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zVM Cloud Connector |
Confirmed
|
Low
|
dyyang@cn.ibm.com |
Bug Description
we have following cases only construct the error but not report the error to client side
129 # API_data should be in the form [funcname, args_list, kwargs_dict]
130 if not isinstance(
131 msg = ("(%s:%s) SDK server got wrong input: '%s' from client."
132 % (addr[0], addr[1], data))
133 results = self.construct_
134 return
140 str(api_kwargs)))
141 try:
142 api_func = getattr(
143 except AttributeError:
144 msg = ("(%s:%s) SDK server got wrong API name: %s from"
145 "client." % (addr[0], addr[1], func_name))
146 results = self.construct_
147 return
148
67 def construct_
68 self.log_error(msg)
69 error = returncode.
70 results = error[0]
71 results['modID'] = returncode.
72 results.
73 'errmsg': error[1][1] % {'msg': msg},
74 'output': ''})
75 return results
Changed in python-zvm-sdk: | |
status: | New → Confirmed |
assignee: | nobody → dyyang@cn.ibm.com (dyyang) |
Changed in python-zvm-sdk: | |
milestone: | none → future |
importance: | Undecided → Low |