summaryrefslogtreecommitdiffstats
path: root/plugins/plugin_examples/sample1Plugin.py
diff options
context:
space:
mode:
authorJoel Andres Granados <jgranado@redhat.com>2008-02-25 15:05:32 +0100
committerJoel Andres Granados <jgranado@redhat.com>2008-02-26 14:43:55 +0100
commitd811af9085d1c7a1262141d232666354bb2379b1 (patch)
treec8265e73742e40d923383413c36b2b58a13a42c3 /plugins/plugin_examples/sample1Plugin.py
parent6cc51ff0f5c4dda26fc196d0e8db35c525b79844 (diff)
downloadfirstaidkit-d811af9085d1c7a1262141d232666354bb2379b1.tar.gz
firstaidkit-d811af9085d1c7a1262141d232666354bb2379b1.tar.xz
firstaidkit-d811af9085d1c7a1262141d232666354bb2379b1.zip
Use a more intuitive return class names for the default flows.
True and false are not very generic for the flows. Favorable and Unfavorable are not completely generic but are better.
Diffstat (limited to 'plugins/plugin_examples/sample1Plugin.py')
-rw-r--r--plugins/plugin_examples/sample1Plugin.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/plugin_examples/sample1Plugin.py b/plugins/plugin_examples/sample1Plugin.py
index a3aaa7e..3c5693d 100644
--- a/plugins/plugin_examples/sample1Plugin.py
+++ b/plugins/plugin_examples/sample1Plugin.py
@@ -28,27 +28,27 @@ class Sample1Plugin(Plugin):
self.reporting = kwargs.get('reporting')
def prepare(self):
- self._result=ReturnValueTrue
+ self._result=Favorable
self.reporting.info("Sample1Plugin in Prepare task", self)
def backup(self):
- self._result=ReturnValueTrue
+ self._result=Favorable
self.reporting.info("Sample1Plugin in backup task", self)
def restore(self):
- self._result=ReturnValueTrue
+ self._result=Favorable
self.reporting.info("Sample1Plugin in Restore task", self)
def diagnose(self):
- self._result=ReturnValueTrue
+ self._result=Favorable
self.reporting.info("Sample1Plugin in diagnose task", self)
def fix(self):
- self._result=ReturnValueFalse
+ self._result=Unfavorable
self.reporting.info("Sample1Plugin in Fix task", self)
def clean(self):
- self._result=ReturnValueTrue
+ self._result=Favorable
self.reporting.info("Sample1Plugin in Clean task", self)
def get_plugin():