From 73f8a9f2b49a5db3595a90d26260fa53d7ad86d2 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 31 Mar 2009 20:12:27 -0700 Subject: [PATCH] Handle service list correctly --- test/list-profiles | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/list-profiles b/test/list-profiles index 4774114..9a68d20 100755 --- a/test/list-profiles +++ b/test/list-profiles @@ -17,6 +17,13 @@ for path in properties["Profiles"]: properties = profile.GetProperties() for key in properties.keys(): - print " %s = %s" % (key, properties[key]) + if key in ["Services"]: + list = "" + for path in properties["Services"]: + val = str(path) + list = list + val[val.rfind("/") + 1:] + " " + print " Services = [ %s]" % (list) + else: + print " %s = %s" % (key, properties[key]) print -- 2.7.4