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