dfe12cbaba
./run_tests.sh is much cleaner now. Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
18 lines
347 B
Python
18 lines
347 B
Python
#part-handler
|
|
|
|
|
|
def list_types():
|
|
return(["text/x-cfninitdata"])
|
|
|
|
|
|
def handle_part(data, ctype, filename, payload):
|
|
if ctype == "__begin__":
|
|
return
|
|
if ctype == "__end__":
|
|
return
|
|
|
|
if ctype == 'text/x-cfninitdata':
|
|
f = open('/var/lib/cloud/data/%s' % filename, 'w')
|
|
f.write(payload)
|
|
f.close()
|