Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Unified Diff: recipe_modules/step/api.py

Issue 2253943003: Formally define step config, pass to stream. (Closed) Base URL: https://github.com/luci/recipes-py@nest-single-event
Patch Set: Rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: recipe_modules/step/api.py
diff --git a/recipe_modules/step/api.py b/recipe_modules/step/api.py
index 8154e2fc5888df63e0375da26e667b9f58589d90..1a6ffb8148f3d52f28f21b6a5675569153a23075 100644
--- a/recipe_modules/step/api.py
+++ b/recipe_modules/step/api.py
@@ -3,6 +3,7 @@
# that can be found in the LICENSE file.
import contextlib
+import datetime
from recipe_engine import recipe_api
@@ -163,7 +164,7 @@ class StepApi(recipe_api.RecipeApiPlain):
schema = self.make_config()
schema.set_val(kwargs)
- return self.run_from_dict(self._engine.create_step(schema))
+ return self.run_from_dict(schema.as_jsonish())
# TODO(martiniss) delete, and make generator_script use **kwargs on step()
@recipe_api.composite_step

Powered by Google App Engine
This is Rietveld 408576698