From 41fdda982ecb4943a1265744e0daa387a297ad59 Mon Sep 17 00:00:00 2001 From: thierry Date: Mon, 3 Sep 2007 10:56:41 +0000 Subject: [PATCH] improved filtering out result --- slice-attributes/SlicesLoad.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/slice-attributes/SlicesLoad.py b/slice-attributes/SlicesLoad.py index 0c811af..0d0e18c 100755 --- a/slice-attributes/SlicesLoad.py +++ b/slice-attributes/SlicesLoad.py @@ -18,7 +18,17 @@ class SlicesLoad: def print_rspecs (self): for slice in self.slices: - print 'slice',slice,'->',self.slices[slice] + # filter out a few things + list=self.slices[slice] + show=[] + for dict in list: + if dict['name'] in ['cpu_share']: + break + show += [dict] + if show: + print 'slice',slice,'->' + for item in show: + print " ",item if __name__ == '__main__': -- 2.45.2