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