#NEWLINE# def _create_instance( self , cfg ) : #NEWLINE# #INDENT# 'Create and return an instance object' #NEWLINE# inst = objects . Instance ( name = 'test.example.com' , uuid = 'test-uuid' , disks = [ ] , nics = [ ] , disk_template = constants . DT_DISKLESS , primary_node = cfg . GetMasterNode ( ) , osparams_private = serializer . PrivateDict ( ) , beparams = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# return inst