#NEWLINE# def create_node( self , roles = None , pending_roles = None ) : #NEWLINE# #INDENT# if ( roles is None ) : #NEWLINE# #INDENT# roles = [ 'controller' ] #NEWLINE# #UNINDENT# if ( pending_roles is None ) : #NEWLINE# #INDENT# pending_roles = [ ] #NEWLINE# #UNINDENT# self . env . create ( nodes_kwargs = [ { #NEWLINE# #INDENT# 'roles' : pending_roles , #NEWLINE# 'pending_roles' : pending_roles , #NEWLINE# 'pending_addition' : True , #NEWLINE# 'api' : True , #NEWLINE# #UNINDENT# } ] ) #NEWLINE# return self . env . nodes [ 0 ]