diff options
author | Martin Sivak <msivak@redhat.com> | 2008-02-26 15:19:42 +0100 |
---|---|---|
committer | Martin Sivak <msivak@redhat.com> | 2008-02-26 15:19:42 +0100 |
commit | cd646619dd4723f8e4ac7325c3cc5e81193dbd40 (patch) | |
tree | 5575a412a13c8df27f93541d5933a174dfb19ba6 /plugins/plugin_examples/sample1Plugin.py | |
parent | cfe9ad54127a42b79f9057d341ec94099630b884 (diff) | |
download | firstaidkit-cd646619dd4723f8e4ac7325c3cc5e81193dbd40.tar.gz firstaidkit-cd646619dd4723f8e4ac7325c3cc5e81193dbd40.tar.xz firstaidkit-cd646619dd4723f8e4ac7325c3cc5e81193dbd40.zip |
Rename the Return* classes to more sane names and update everything to use them
Fix the NoOptionError exception throwing in configuration
Add the -a|--auto parameter to launch the automatic mode of operation
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 8218104..22d033f 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=ReturnFavorable + self._result=ReturnSuccess self.reporting.info("Sample1Plugin in Prepare task", self) def backup(self): - self._result=ReturnFavorable + self._result=ReturnSuccess self.reporting.info("Sample1Plugin in backup task", self) def restore(self): - self._result=ReturnFavorable + self._result=ReturnSuccess self.reporting.info("Sample1Plugin in Restore task", self) def diagnose(self): - self._result=ReturnFavorable + self._result=ReturnSuccess self.reporting.info("Sample1Plugin in diagnose task", self) def fix(self): - self._result=ReturnUnfavorable + self._result=ReturnFailure self.reporting.info("Sample1Plugin in Fix task", self) def clean(self): - self._result=ReturnFavorable + self._result=ReturnSuccess self.reporting.info("Sample1Plugin in Clean task", self) def get_plugin(): |