MCPcopy Create free account
hub / github.com/StackStorm/st2 / _transform_response

Method _transform_response

st2client/st2client/utils/interactive.py:138–148  ·  view source on GitHub ↗
(self, response)

Source from the content-addressed store, hash-verified

136 self.template += ": "
137
138 def _transform_response(self, response):
139 if response.lower() in POSITIVE_BOOLEAN:
140 return True
141 if response.lower() in NEGATIVE_BOOLEAN:
142 return False
143
144 # Hopefully, it will never happen
145 raise OperationFailureException(
146 "Response neither positive no negative. "
147 "Value have not been properly validated."
148 )
149
150
151class NumberReader(StringReader):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected