#NEWLINE# def inspect_capabilities( self ) : #NEWLINE# #INDENT# 'Determines whether guestfs is well configured.' #NEWLINE# try : #NEWLINE# #INDENT# g = tpool . Proxy ( guestfs . GuestFS ( ) ) #NEWLINE# g . add_drive ( '/dev/null' ) #NEWLINE# g . launch ( ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# raise exception . NovaException ( ( _ ( 'libguestfs installed but not usable (%s)' ) % e ) ) #NEWLINE# #UNINDENT# return g