#NEWLINE# def _extend_server( self , context , server , instance ) : #NEWLINE# #INDENT# key = ( '%s:hypervisor_hostname' % Extended_server_attributes . alias ) #NEWLINE# server [ key ] = instance . node #NEWLINE# for attr in [ 'host' , 'name' ] : #NEWLINE# #INDENT# if ( attr == 'name' ) : #NEWLINE# #INDENT# key = ( '%s:instance_%s' % ( Extended_server_attributes . alias , attr ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# key = ( '%s:%s' % ( Extended_server_attributes . alias , attr ) ) #NEWLINE# #UNINDENT# server [ key ] = instance [ attr ]