]> git.ipfire.org Git - oddments/fireinfo.git/commitdiff
Hide the private id from the user.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 27 Dec 2010 15:36:44 +0000 (16:36 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 27 Dec 2010 15:36:44 +0000 (16:36 +0100)
sendprofile

index 9beff9c2a010a0f506f99dadd8165f2101be82fb..55b02bae8651d7d27b11f68e2120afdc5f733948 100644 (file)
@@ -100,6 +100,10 @@ def main():
 
        # If --dump is passed -> only dump the output.
        if "--dump" in sys.argv:
 
        # 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
 
                print json.dumps(profile, sort_keys=True, indent=4)
                return 0