]> git.ipfire.org Git - ipfire.org.git/commitdiff
If the host is ourself, we don't return it.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 3 Oct 2008 12:47:38 +0000 (14:47 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 3 Oct 2008 12:47:38 +0000 (14:47 +0200)
build/rpc.py

index 3a8923401d16477650ed134efec6338260f42df2..51cf15f04ed25445ca24bf8288d2464ba979b56b 100644 (file)
@@ -55,9 +55,9 @@ response = Response(config)
 
 data = cgi.FieldStorage()
 
+uuid = data.getfirst("uuid")
 action  = data.getvalue('action')
 if action == "set":
-       uuid = data.getfirst("uuid")
        if not uuid:
                response.set_code("406")
                response.set_mesg("UUID is not valid!")
@@ -76,6 +76,7 @@ elif action == "get":
                                if value == "raw":
                                        builders = []
                                        for builder in getAllBuilders():
+                                               if uuid == builder.uuid: continue
                                                builders.append("%s" % builder.distcc)
                                        string = "localhost/1"
                                        while True: