From d0e46d81fcc7ef746c1fc59177f6a823a33fb916 Mon Sep 17 00:00:00 2001 From: Hidekazu Nakamura Date: Fri, 2 Dec 2016 12:47:34 +0900 Subject: [PATCH] [Doc] Fix example code of goal plugin An example code of goal plugin does not work. This patch fixes it. Change-Id: I75c2ffa74a003fad9e2d512927e4cb47554783c2 --- doc/source/dev/plugin/goal-plugin.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/dev/plugin/goal-plugin.rst b/doc/source/dev/plugin/goal-plugin.rst index 2f6928a88..f0e7dd8ad 100644 --- a/doc/source/dev/plugin/goal-plugin.rst +++ b/doc/source/dev/plugin/goal-plugin.rst @@ -60,8 +60,8 @@ Here is an example showing how you can define a new ``NewGoal`` goal plugin: # import path: thirdparty.new from watcher._i18n import _ + from watcher.decision_engine.goal import base from watcher.decision_engine.goal.efficacy import specs - from watcher.decision_engine.strategy.strategies import base class NewGoal(base.Goal): @@ -79,11 +79,11 @@ Here is an example showing how you can define a new ``NewGoal`` goal plugin: @classmethod def get_efficacy_specification(cls): - return specs.UnclassifiedStrategySpecification() + return specs.Unclassified() As you may have noticed, the :py:meth:`~.Goal.get_efficacy_specification` -method returns an :py:meth:`~.UnclassifiedStrategySpecification` instance which +method returns an :py:meth:`~.Unclassified` instance which is provided by Watcher. This efficacy specification is useful during the development process of your goal as it corresponds to an empty specification. If you want to learn more about what efficacy specifications are used for or to