#NEWLINE# def check_instance_is_eligible_for_backup( self , instance ) : #NEWLINE# #INDENT# if ( self . databaseinfra . instances . count ( ) == 1 ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# results = self . __query ( query_string = "show variables like 'read_only'" , instance = instance ) #NEWLINE# if ( self [ 0 ] [ 'Value' ] == 'ON' ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return False