Since we now have one builder object per session they don't match their
hashes any more. Therefore we identify them by their name which is also
unique.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
log.info("%s has connected" % self)
# Store the connection
- self.backend.builders.connections[self] = connection
+ self.backend.builders.connections[self.name] = connection
def disconnected(self):
"""
log.info("%s has disconnected" % self)
try:
- del self.backend.builders.connections[self]
+ del self.backend.builders.connections[self.name]
except KeyError:
pass
Easy access to the control connection to a builder
"""
try:
- return self.backend.builders.connections[self]
+ return self.backend.builders.connections[self.name]
except KeyError:
pass