Skip to content

Commit 5a15361

Browse files
authored
Merge pull request #73 from stat-kwon/master
Remove response Handlers in pipeline of service
2 parents 7d5489d + fd51403 commit 5a15361

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

src/spaceone/core/service/service.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,16 @@ def _pipeline(func, self, params, append_meta):
120120
with _TRACER.start_as_current_span(f'ServiceBody',
121121
links=[trace.Link(self.current_span_context)]) as span:
122122
response_or_iterator = func(self, params)
123-
124-
# 7. Response Handlers
125-
with _TRACER.start_as_current_span('PostProcessing') as span:
126-
if isinstance(response_or_iterator, types.GeneratorType):
127-
return _generate_response(self, response_or_iterator)
128-
else:
129-
response_or_iterator = _response_mutation_handler(self, response_or_iterator)
130-
_success_handler(self, response_or_iterator)
131-
return response_or_iterator
123+
return response_or_iterator
124+
125+
# # 7. Response Handlers
126+
# with _TRACER.start_as_current_span('PostProcessing') as span:
127+
# if isinstance(response_or_iterator, types.GeneratorType):
128+
# return _generate_response(self, response_or_iterator)
129+
# else:
130+
# response_or_iterator = _response_mutation_handler(self, response_or_iterator)
131+
# _success_handler(self, response_or_iterator)
132+
# return response_or_iterator
132133

133134
except ERROR_INVALID_ARGUMENT as e:
134135
_error_handler(self, e)

0 commit comments

Comments
 (0)