summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJoel Andres Granados <jgranado@redhat.com>2008-03-07 18:16:26 +0100
committerJoel Andres Granados <jgranado@redhat.com>2008-03-07 18:16:26 +0100
commita294cf00bf59e5ac506f327fa1e7517b2b82c296 (patch)
tree8cf2ce24a4cc5a94c36c2234ec5c1f93027d69b3 /plugins
parent79cc59b4390aa23bc5632c967cfd0530217b407e (diff)
Make for a better report
Diffstat (limited to 'plugins')
-rw-r--r--plugins/plugin_undelete_partitions/undeletePartition.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/plugin_undelete_partitions/undeletePartition.py b/plugins/plugin_undelete_partitions/undeletePartition.py
index abe5271..5a3b19e 100644
--- a/plugins/plugin_undelete_partitions/undeletePartition.py
+++ b/plugins/plugin_undelete_partitions/undeletePartition.py
@@ -69,10 +69,10 @@ class UndeletePartition(Plugin):
origin = self, level = PLUGIN)
# When we find a rescuable partition we change this to true.
rescuablePresent = False
- for key, value in self.disks.iteritems():
- self.disks[key] = [ _undelpart.getRescuable(key), _undelpart.getPartitionList(key), [] ]
- if len(self.disks[key][0]) > 0:
- self._reporting.info("Possible partitions to recover: %s"%self.disks[key],
+ for disk, elements in self.disks.iteritems():
+ self.disks[disk] = [ _undelpart.getRescuable(disk), _undelpart.getPartitionList(disk), [] ]
+ if len(self.disks[disk][0]) > 0:
+ self._reporting.info("Possible partitions to recover in disk %s: %s"%(disk, self.disks[disk][0]),
origin = self, level = PLUGIN)
rescuablePresent = True
if not rescuablePresent: