Fix databaseInfra.check_instances_status bug