diff options
author | Joel Andres Granados <jgranado@redhat.com> | 2008-05-12 11:51:11 +0200 |
---|---|---|
committer | Joel Andres Granados <jgranado@redhat.com> | 2008-05-12 11:51:11 +0200 |
commit | 59389f43868acb4511263b221190f22087252863 (patch) | |
tree | f47ed556feacaf28ce2ffe625814c98b2e2905cb /plugins | |
parent | 27cb269e0f7d360de373785789c7eea55e828ad1 (diff) | |
download | firstaidkit-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')
-rw-r--r-- | plugins/plugin_examples/dep1.py | 4 | ||||
-rw-r--r-- | plugins/plugin_examples/dep2.py | 4 | ||||
-rw-r--r-- | plugins/plugin_examples/dep3.py | 4 | ||||
-rw-r--r-- | plugins/plugin_examples/sample1Plugin.py | 2 | ||||
-rw-r--r-- | plugins/plugin_examples/sample2Plugin.py | 2 | ||||
-rw-r--r-- | plugins/plugin_examples/sample3Plugin/sample3Plugin.py | 4 | ||||
-rw-r--r-- | plugins/plugin_grub.py | 10 | ||||
-rw-r--r-- | plugins/plugin_rpm/issue_packages.py | 2 | ||||
-rw-r--r-- | plugins/plugin_rpm_lowlevel/issue_locks.py | 2 | ||||
-rw-r--r-- | plugins/plugin_rpm_lowlevel/issue_packages.py | 4 | ||||
-rw-r--r-- | plugins/xserver.py | 4 |
11 files changed, 21 insertions, 21 deletions
diff --git a/plugins/plugin_examples/dep1.py b/plugins/plugin_examples/dep1.py index a39beda..440d357 100644 --- a/plugins/plugin_examples/dep1.py +++ b/plugins/plugin_examples/dep1.py @@ -35,7 +35,7 @@ class Sample1Plugin(Plugin): def prepare(self): self._result=ReturnSuccess - self._issue.set(detected = False, reporting = self._reporting, origin = self, level = PLUGIN) + self._issue.set(checked = False, reporting = self._reporting, origin = self, level = PLUGIN) def backup(self): self._result=ReturnSuccess @@ -46,7 +46,7 @@ class Sample1Plugin(Plugin): def diagnose(self): self._result=ReturnSuccess self.provide("sample_dependency2") - self._issue.set(detected = True, happened = False, reporting = self._reporting, origin = self, level = PLUGIN) + self._issue.set(checked = True, happened = False, reporting = self._reporting, origin = self, level = PLUGIN) def fix(self): self._result=ReturnFailure diff --git a/plugins/plugin_examples/dep2.py b/plugins/plugin_examples/dep2.py index 1a0e0fd..8044f4b 100644 --- a/plugins/plugin_examples/dep2.py +++ b/plugins/plugin_examples/dep2.py @@ -35,7 +35,7 @@ class Sample1Plugin(Plugin): def prepare(self): self._result=ReturnSuccess - self._issue.set(detected = False, reporting = self._reporting, origin = self, level = PLUGIN) + self._issue.set(checked = False, reporting = self._reporting, origin = self, level = PLUGIN) def backup(self): self._result=ReturnSuccess @@ -45,7 +45,7 @@ class Sample1Plugin(Plugin): def diagnose(self): self._result=ReturnSuccess - self._issue.set(detected = True, happened = False, reporting = self._reporting, origin = self, level = PLUGIN) + self._issue.set(checked = True, happened = False, reporting = self._reporting, origin = self, level = PLUGIN) def fix(self): self._result=ReturnFailure diff --git a/plugins/plugin_examples/dep3.py b/plugins/plugin_examples/dep3.py index fb109c4..29a2c37 100644 --- a/plugins/plugin_examples/dep3.py +++ b/plugins/plugin_examples/dep3.py @@ -31,7 +31,7 @@ class Sample1Plugin(Plugin): def prepare(self): self._result=ReturnSuccess - self._issue.set(detected = False, reporting = self._reporting, origin = self, level = PLUGIN) + self._issue.set(checked = False, reporting = self._reporting, origin = self, level = PLUGIN) def backup(self): self._result=ReturnSuccess @@ -42,7 +42,7 @@ class Sample1Plugin(Plugin): def diagnose(self): self._result=ReturnSuccess self.provide("sample_dependency") - self._issue.set(detected = True, happened = False, reporting = self._reporting, origin = self, level = PLUGIN) + self._issue.set(checked = True, happened = False, reporting = self._reporting, origin = self, level = PLUGIN) def fix(self): self._result=ReturnFailure diff --git a/plugins/plugin_examples/sample1Plugin.py b/plugins/plugin_examples/sample1Plugin.py index 560f69d..69107c4 100644 --- a/plugins/plugin_examples/sample1Plugin.py +++ b/plugins/plugin_examples/sample1Plugin.py @@ -44,7 +44,7 @@ class Sample1Plugin(Plugin): def diagnose(self): self._result=ReturnSuccess - self._issue.set(detected = True, happened = False, reporting = self._reporting, origin = self, level = PLUGIN) + self._issue.set(checked = True, happened = False, reporting = self._reporting, origin = self, level = PLUGIN) self._reporting.info("Sample1Plugin in diagnose task", origin = self, level = PLUGIN) def fix(self): diff --git a/plugins/plugin_examples/sample2Plugin.py b/plugins/plugin_examples/sample2Plugin.py index aab679c..cbc82e2 100644 --- a/plugins/plugin_examples/sample2Plugin.py +++ b/plugins/plugin_examples/sample2Plugin.py @@ -59,7 +59,7 @@ class Sample2Plugin(Plugin): self._result=ReturnSuccess def diagnose(self): - self._issue.set(detected = True, happened = True, reporting = self._reporting, origin = self, level = PLUGIN) + self._issue.set(checked = True, happened = True, reporting = self._reporting, origin = self, level = PLUGIN) self._result=ReturnFailure def fix(self): 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"] diff --git a/plugins/plugin_grub.py b/plugins/plugin_grub.py index e60cf48..146ee6f 100644 --- a/plugins/plugin_grub.py +++ b/plugins/plugin_grub.py @@ -113,7 +113,7 @@ class Sample1Plugin(Plugin): self._reporting.debug(origin = self, level = PLUGIN, message = "Linux partition found: %s" % (data[0][5:],)) if len(self._bootable) == 0: - self._issue_boot_flag.set(detected = True, happened = True, reporting = self._reporting, origin = self, level = PLUGIN) + self._issue_boot_flag.set(checked = True, happened = True, reporting = self._reporting, origin = self, level = PLUGIN) #Find grub directories @@ -126,7 +126,7 @@ class Sample1Plugin(Plugin): self._grub_dir.add(l.strip()) if len(self._grub_dir) == 0: - self._issue_grub_dir.set(detected = True, happened = True, reporting = self._reporting, origin = self, level = PLUGIN) + self._issue_grub_dir.set(checked = True, happened = True, reporting = self._reporting, origin = self, level = PLUGIN) #TODO Mount the required partitions from self._grub_dir and read the important files from there for gdrive in self._grub_dir: @@ -165,11 +165,11 @@ class Sample1Plugin(Plugin): #if there is the grub configuration dir and the grub appears installed into MBR or bootable partition, then we are probably OK if len(self._grub_dir)>0 and len(self._grub)>0 and len(set(self._grub).intersection(set(self._bootable+self._drives)))>0: self._result=ReturnSuccess - self._issue_grub_installed.set(detected = True, happened = False, reporting = self._reporting, origin = self, level = PLUGIN) - self._issue_boot_flag.set(detected = True, happened = False, reporting = self._reporting, origin = self, level = PLUGIN) #if we can find bootable, than it didn't happen + self._issue_grub_installed.set(checked = True, happened = False, reporting = self._reporting, origin = self, level = PLUGIN) + self._issue_boot_flag.set(checked = True, happened = False, reporting = self._reporting, origin = self, level = PLUGIN) #if we can find bootable, than it didn't happen self._dependencies.provide("boot-grub") else: - self._issue_grub_installed.set(detected = True, happened = True, reporting = self._reporting, origin = self, level = PLUGIN) + self._issue_grub_installed.set(checked = True, happened = True, reporting = self._reporting, origin = self, level = PLUGIN) self._result=ReturnFailure def fix(self): diff --git a/plugins/plugin_rpm/issue_packages.py b/plugins/plugin_rpm/issue_packages.py index 8dfefcf..11ed622 100644 --- a/plugins/plugin_rpm/issue_packages.py +++ b/plugins/plugin_rpm/issue_packages.py @@ -52,7 +52,7 @@ class RequiredPackages(Issue): else: self._happened = False - self._detected = True + self._checked = True return True def fix(self): diff --git a/plugins/plugin_rpm_lowlevel/issue_locks.py b/plugins/plugin_rpm_lowlevel/issue_locks.py index fcc4ec3..da77e3a 100644 --- a/plugins/plugin_rpm_lowlevel/issue_locks.py +++ b/plugins/plugin_rpm_lowlevel/issue_locks.py @@ -53,7 +53,7 @@ class Locks(Issue): else: self._happened = True - self._detected = True + self._checked = True return True def fix(self): diff --git a/plugins/plugin_rpm_lowlevel/issue_packages.py b/plugins/plugin_rpm_lowlevel/issue_packages.py index bd07402..d24ada6 100644 --- a/plugins/plugin_rpm_lowlevel/issue_packages.py +++ b/plugins/plugin_rpm_lowlevel/issue_packages.py @@ -41,7 +41,7 @@ class Packages(Issue): if not os.path.isfile(os.path.realpath(dbname)): self._db_missing = True self._happened = True - self._detected = True + self._checked = True return True #verify the Package database @@ -55,7 +55,7 @@ class Packages(Issue): if len(rpm_verify.stderr.read())>0: self._happened = True - self._detected = True + self._checked = True return True def fix(self): diff --git a/plugins/xserver.py b/plugins/xserver.py index 8ce42be..de16619 100644 --- a/plugins/xserver.py +++ b/plugins/xserver.py @@ -81,7 +81,7 @@ class Xserver(Plugin): else: self._reporting.info("X server is missconfigured.", level = PLUGIN, origin = self) self._result = ReturnFailure - self._issue.set(detected = True, happened = (self._result == ReturnFailure), reporting = self._reporting, level = PLUGIN, origin = self) + self._issue.set(checked = True, happened = (self._result == ReturnFailure), reporting = self._reporting, level = PLUGIN, origin = self) def diagnose2(self): """Just a diagnose without the lock check""" @@ -99,7 +99,7 @@ class Xserver(Plugin): else: self._reporting.info("X server is missconfigured.", level = PLUGIN, origin = self) self._result = ReturnFailure - self._issue.set(detected = True, happened = (self._result == ReturnFailure), reporting = self._reporting, level = PLUGIN, origin = self) + self._issue.set(checked = True, happened = (self._result == ReturnFailure), reporting = self._reporting, level = PLUGIN, origin = self) |