@@ -163,30 +163,35 @@ def list_hardware_info(self):
163163 def get_clean_steps (self , node , ports ):
164164 """Get a list of clean steps with priority.
165165
166- Returns a list of dicts of the following form:
167- {'step': the HardwareManager function to call.
168- 'priority': the order steps will be run in. Ironic will sort all the
169- clean steps from all the drivers, with the largest priority
170- step being run first. If priority is set to 0, the step will
171- not be run during cleaning, but may be run during zapping.
172- 'reboot_requested': Whether the agent should request Ironic reboots
173- the node via the power driver after the operation completes.
174- }
175-
176- Note: multiple hardware managers may return the same step name. The
177- priority of the step will be the largest priority of steps with
178- the same name. The steps will be called using
179- `hardware.dispatch_to_managers` and handled by the best suited
180- hardware manager. If you need a step to be executed by only your
181- hardware manager, ensure it has a unique step name.
166+ Returns a list of steps. Each step is represeted by a dict::
167+
168+ {
169+ 'step': the HardwareManager function to call.
170+ 'priority': the order steps will be run in. Ironic will sort all
171+ the clean steps from all the drivers, with the largest
172+ priority step being run first. If priority is set to 0,
173+ the step will not be run during cleaning, but may be
174+ run during zapping.
175+ 'reboot_requested': Whether the agent should request Ironic reboots
176+ the node via the power driver after the
177+ operation completes.
178+ }
179+
180+ If multiple hardware managers return the same step name, the priority
181+ of the step will be the largest priority of steps with the same name.
182+ The steps will be called using `hardware.dispatch_to_managers` and
183+ handled by the best suited hardware manager. If you need a step to be
184+ executed by only your hardware manager, ensure it has a unique step
185+ name.
182186
183187 `node` and `ports` can be used by other hardware managers to further
184188 determine if a clean step is supported for the node.
185189
186190 :param node: Ironic node object
187191 :param ports: list of Ironic port objects
188- :return: a default list of decommission steps, as a list of
189- dictionaries
192+ :return: a list of cleaning steps, where each step is described as a
193+ dict as defined above
194+
190195 """
191196 return [
192197 {
0 commit comments