#NEWLINE# def check_quotas( self , cloud ) : #NEWLINE# #INDENT# compute_resource = cloud . resources [ utils . COMPUTE_RESOURCE ] #NEWLINE# keystone_resource = cloud . resources [ utils . IDENTITY_RESOURCE ] #NEWLINE# tenant = cloud . cloud_config [ 'cloud' ] [ 'tenant' ] #NEWLINE# ten_id = keystone_resource . get_tenant_id_by_name ( tenant ) #NEWLINE# with proxy_client . expect_exception ( nova_exceptions . ClientException ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# compute_resource . nova_client . quotas . update ( ten_id ) #NEWLINE# #UNINDENT# except nova_exceptions . ClientException : #NEWLINE# #INDENT# raise cf_exceptions . AbortMigrationError ( ( "'%s' cloud does not support quotas (Nova quotas)." % cloud . position ) )