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

Function cast_array

st2api/st2api/controllers/v1/aliasexecution.py:53–58  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

51
52
53def cast_array(value):
54 if isinstance(value, list):
55 # Already a list, no casting needed nor wanted.
56 return value
57
58 return [v.strip() for v in value.split(",")]
59
60
61CAST_OVERRIDES = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected