Skip to content

Commit b173ce9

Browse files
committed
[doc] Clarify Step return values
Clarifying what we require for a return value in a cleaning step; basically not much. Change-Id: I28c26d5b2d32d7af8d97900eb029741c8dbb166f
1 parent 4cea26f commit b173ce9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/source/contributor/hardware_managers.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ message, and no further managers will be called. An example step:
114114
else:
115115
raise errors.IncompatibleHardwareMethodError()
116116
117+
118+
.. note::
119+
120+
If creating a new step, the value returned must be serializable into an
121+
API response and log message. If replacing an existing step, you should
122+
return a response of the same type and style of the upstream step.
123+
117124
If the step has args, you need to add them to argsinfo and provide the
118125
function with extra parameters.
119126

0 commit comments

Comments
 (0)