#NEWLINE# def process( self , data ) : #NEWLINE# #INDENT# 'Process the given data received from the cloud-config userdata.\n\n        It knows to process only lists and dicts.\n        ' #NEWLINE# if ( not isinstance ( data , ( list , dict ) ) ) : #NEWLINE# #INDENT# raise exception . CloudbaseInitException ( ( "Can't process the type of data %r" % type ( data ) ) ) #NEWLINE# #UNINDENT# if isinstance ( item , dict ) : #NEWLINE# #INDENT# data = [ data ] #NEWLINE# #UNINDENT# for item in data : #NEWLINE# #INDENT# self . _process_item ( item )