#NEWLINE# def _get_seed_node_context( self , environment_name , resource_type , resource_name , scaling_index ) : #NEWLINE# #INDENT# environment = self . environments [ environment_name ] #NEWLINE# resource_types = environment [ 'aws_nodes' ] [ resource_type ] #NEWLINE# node = resource_types [ resource_name ] #NEWLINE# seed_environment_name = self . get_seed_environment_name ( environment_name ) #NEWLINE# if ( not seed_environment_name ) : #NEWLINE# #INDENT# return InfiniteEmptyStringDict ( ) #NEWLINE# #UNINDENT# if ( ( 'seed' in node ) and ( not node [ 'seed' ] ) ) : #NEWLINE# #INDENT# return InfiniteEmptyStringDict ( ) #NEWLINE# #UNINDENT# seed = node . get ( 'seed' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# context = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# context [ 'resource_type' ] = resource_type #NEWLINE# context [ 'name' ] = seed . get ( 'name' , resource_name ) #NEWLINE# context [ 'scaling_index' ] = seed . get ( 'scaling_index' , scaling_index ) #NEWLINE# context [ 'environment_name' ] = seed_environment_name #NEWLINE# context [ 'seed_environment_name' ] = None #NEWLINE# return node