#NEWLINE# def create_pool( self , device , tier , poolname ) : #NEWLINE# #INDENT# ' Discovers and registers a StoragePool ' #NEWLINE# log . info ( ( 'Adding pool %s...' % poolname ) ) #NEWLINE# pool = device . findRemoteStoragePool ( StoragePoolPredicates . name ( poolname ) ) #NEWLINE# pool . setTier ( tier ) #NEWLINE# pool . save ( ) #NEWLINE# return pool