From a1e522271eb1a17930cdb0dddf11876e827f49a0 Mon Sep 17 00:00:00 2001 From: Ronny Strutz Date: Wed, 9 Nov 2005 14:44:58 +0000 Subject: [PATCH] add hddcount --- lib/python/Components/Harddisk.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/python/Components/Harddisk.py b/lib/python/Components/Harddisk.py index a638977..b51d7a6 100644 --- a/lib/python/Components/Harddisk.py +++ b/lib/python/Components/Harddisk.py @@ -169,6 +169,12 @@ class HarddiskManager: if hddNum > 8: break + def HDDCount(self): + cnt = 0 + for hd in self.hdd: + cnt = cnt + 1 + return cnt + def HDDList(self): list = [ ] for hd in self.hdd: -- 2.7.4