summaryrefslogtreecommitdiffstats
path: root/plugins/plugin_examples/sample3Plugin/sample3Plugin.py
diff options
context:
space:
mode:
authorJoel Andres Granados <jgranado@redhat.com>2008-05-12 11:51:11 +0200
committerJoel Andres Granados <jgranado@redhat.com>2008-05-12 11:51:11 +0200
commit59389f43868acb4511263b221190f22087252863 (patch)
treef47ed556feacaf28ce2ffe625814c98b2e2905cb /plugins/plugin_examples/sample3Plugin/sample3Plugin.py
parent27cb269e0f7d360de373785789c7eea55e828ad1 (diff)
downloadfirstaidkit-59389f43868acb4511263b221190f22087252863.tar.gz
firstaidkit-59389f43868acb4511263b221190f22087252863.tar.xz
firstaidkit-59389f43868acb4511263b221190f22087252863.zip
Change the detected name to checked.
The new variable name better expresses the objective of the issue state. This will help avoid confusion for the plugin developer.
Diffstat (limited to 'plugins/plugin_examples/sample3Plugin/sample3Plugin.py')
-rw-r--r--plugins/plugin_examples/sample3Plugin/sample3Plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/plugin_examples/sample3Plugin/sample3Plugin.py b/plugins/plugin_examples/sample3Plugin/sample3Plugin.py
index d3a3f21..a6c4183 100644
--- a/plugins/plugin_examples/sample3Plugin/sample3Plugin.py
+++ b/plugins/plugin_examples/sample3Plugin/sample3Plugin.py
@@ -34,7 +34,7 @@ class Sample3Plugin(Plugin):
def prepare(self):
# Prepare command line.
- self._issue.set(detected = False, reporting = self._reporting, origin = self, level = PLUGIN)
+ self._issue.set(checked = False, reporting = self._reporting, origin = self, level = PLUGIN)
prepare = [self._path + "/plugin", "--task", "prepare"]
proc = subprocess.Popen(prepare, stdout=subprocess.PIPE)
(out, err) = proc.communicate()
@@ -83,7 +83,7 @@ class Sample3Plugin(Plugin):
self._result=ReturnFailure
elif out[-4:] == "true":
self._result=ReturnSuccess
- self._issue.set(detected = True, happened = (self._result==ReturnFailure), reporting = self._reporting, origin = self, level = PLUGIN)
+ self._issue.set(checked = True, happened = (self._result==ReturnFailure), reporting = self._reporting, origin = self, level = PLUGIN)
def fix(self):
fix = [self._path+"/plugin", "--task", "fix"]