#NEWLINE# def try_auto_configure_disk( session , vdi_ref , new_gb ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# _auto_configure_disk ( session , vdi_ref , new_gb ) #NEWLINE# #UNINDENT# except exception . CannotResizeDisk as e : #NEWLINE# #INDENT# msg = _LW ( 'Attempted auto_configure_disk failed because: %s' ) #NEWLINE# LOG . warning ( ( msg % e ) )