#NEWLINE# def get_node( conn , name ) : #NEWLINE# #INDENT# '\n    Return a node for the named VM\n    ' #NEWLINE# datacenter_id = get_datacenter_id ( ) #NEWLINE# for item in conn . list_servers ( conn ) [ 'items' ] : #NEWLINE# #INDENT# if ( item [ 'properties' ] [ 'name' ] == name ) : #NEWLINE# #INDENT# node = { #NEWLINE# #INDENT# 'id' : item [ 'id' ] , #NEWLINE# #UNINDENT# } #NEWLINE# node . update ( item [ 'properties' ] ) #NEWLINE# salt . utils . cloud . cache_node ( salt . utils . cloud . simple_types_filter ( node ) , __active_provider_name__ , __opts__ ) #NEWLINE# return node