From 676569581c15eb1a4caa596ec0d3b1853bc9b706 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 19 Nov 2009 04:52:09 +0100 Subject: [PATCH] Add pretty decoding for DomainNameServers settings --- test/list-contexts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/list-contexts b/test/list-contexts index e556ca8..f073118 100755 --- a/test/list-contexts +++ b/test/list-contexts @@ -38,7 +38,11 @@ for path in properties["Modems"]: val = "{" for i in properties[key].keys(): val += " " + i + "=" - val += properties[key][i] + if i in ["DomainNameServers"]: + for n in properties[key][i]: + val += n + "," + else: + val += properties[key][i] val += " }" else: val = str(properties[key]) -- 2.7.4