diff options
author | Joel Andres Granados <jgranado@redhat.com> | 2008-02-25 15:11:47 +0100 |
---|---|---|
committer | Joel Andres Granados <jgranado@redhat.com> | 2008-02-26 14:43:55 +0100 |
commit | cfe9ad54127a42b79f9057d341ec94099630b884 (patch) | |
tree | 6901da68ca2008d47a4e8c13e713c1f5d2a0497a /plugins/plugin_examples/sample1Plugin.py | |
parent | d811af9085d1c7a1262141d232666354bb2379b1 (diff) | |
download | firstaidkit-cfe9ad54127a42b79f9057d341ec94099630b884.tar.gz firstaidkit-cfe9ad54127a42b79f9057d341ec94099630b884.tar.xz firstaidkit-cfe9ad54127a42b79f9057d341ec94099630b884.zip |
Appeninding Return to the class names help to identify them in the plugin code.
Diffstat (limited to 'plugins/plugin_examples/sample1Plugin.py')
-rw-r--r-- | plugins/plugin_examples/sample1Plugin.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/plugin_examples/sample1Plugin.py b/plugins/plugin_examples/sample1Plugin.py index 3c5693d..8218104 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=Favorable + self._result=ReturnFavorable self.reporting.info("Sample1Plugin in Prepare task", self) def backup(self): - self._result=Favorable + self._result=ReturnFavorable self.reporting.info("Sample1Plugin in backup task", self) def restore(self): - self._result=Favorable + self._result=ReturnFavorable self.reporting.info("Sample1Plugin in Restore task", self) def diagnose(self): - self._result=Favorable + self._result=ReturnFavorable self.reporting.info("Sample1Plugin in diagnose task", self) def fix(self): - self._result=Unfavorable + self._result=ReturnUnfavorable self.reporting.info("Sample1Plugin in Fix task", self) def clean(self): - self._result=Favorable + self._result=ReturnFavorable self.reporting.info("Sample1Plugin in Clean task", self) def get_plugin(): |