def sendState(): channel.basic_publish(exchange='lxc', routing_key="lxc.master", body=lxcproc.jsonify(lxcproc.getContainers())) threading.Timer(5, sendState).start()
def reply(command): channel.basic_publish(exchange='lxc', routing_key="lxc.master", body=lxcproc.jsonify(command()))