def deploy(self, machine):
        """Deploy service."""

        log.debug("machine id: %s." % machine)

        path = self.path + "/machines"
        value, metadata = yield self.client.get(path)
        machines = json.loads(value)
        machines.append(machine)

        yield self.client.set(path, json.dumps(machines))
def deploy ( self , machine ) : log . debug ( "machine id: %s." % machine ) path = self . path + "/machines" value , metadata = yield self . client . get ( path ) machines = json . loads ( value ) machines . append ( machine ) yield self . client . set ( path , json . dumps ( machines ) )
Deploy service.