#NEWLINE# def _expand_node( node ) : #NEWLINE# #INDENT# '\n    Convert the libcloud Node object into something more serializable.\n    ' #NEWLINE# ret = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# ret . update ( node . __dict__ ) #NEWLINE# try : #NEWLINE# #INDENT# del ret [ 'extra' ] [ 'boot_disk' ] #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# zone = ret [ 'extra' ] [ 'zone' ] #NEWLINE# ret [ 'extra' ] [ 'zone' ] = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# ret [ 'extra' ] [ 'zone' ] . update ( zone . __dict__ ) #NEWLINE# return ret