From: Michael Tremer Date: Mon, 27 Dec 2010 15:36:44 +0000 (+0100) Subject: Hide the private id from the user. X-Git-Tag: v2.0.0~7 X-Git-Url: http://git.ipfire.org/?p=oddments%2Ffireinfo.git;a=commitdiff_plain;h=e8d315a167332bfead3604cc445a7bbbe673cc1b Hide the private id from the user. --- diff --git a/sendprofile b/sendprofile index 9beff9c..55b02ba 100644 --- a/sendprofile +++ b/sendprofile @@ -100,6 +100,10 @@ def main(): # If --dump is passed -> only dump the output. if "--dump" in sys.argv: + # Remove the private id when dumping the profile because + # it contains no information and may confuse people. + del profile["private_id"] + print json.dumps(profile, sort_keys=True, indent=4) return 0