From 4aae8542cb413d33eac6c0b39d6ef079e39d49c3 Mon Sep 17 00:00:00 2001 From: Vladyslav Drok Date: Mon, 25 Jan 2016 16:20:37 +0200 Subject: [PATCH] Add priority to manual clean step example clean_step decorator must have a priority argument, this change fixes a docstring example of manual clean step that was missing it. Change-Id: I6d6ca312fa3171026b2db427b648f7ae7273e6c2 --- ironic/drivers/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ironic/drivers/base.py b/ironic/drivers/base.py index 7f3a24da56..40694f3bc6 100644 --- a/ironic/drivers/base.py +++ b/ironic/drivers/base.py @@ -1071,7 +1071,7 @@ def clean_step(priority, abortable=False, argsinfo=None): def example_cleaning(self, task): # do some cleaning - @base.clean_step(abortable=True, argsinfo= + @base.clean_step(priority=0, abortable=True, argsinfo= {'size': {'description': 'size of widget (MB)', 'required': True}}) def advanced_clean(self, task, **kwargs):