~ubuntu-branches/ubuntu/lucid/cloud-init/lucid-updates

1
2
3
4
5
6
7
8
9
10
11
12
#part-handler
# vi: syntax=python ts=4

def list_types():
    return(["text/plain", "text/go-cubs-go"])

def handle_part(data,ctype,filename,payload):
    if ctype == "__end__" or ctype == "__begin__": return

    print "==== received ctype=%s filename=%s ====" % (ctype,filename)
    print payload
    print "==== end ctype=%s filename=%s" % (ctype, filename)