def fetch_data(self): virus_servers = api.get_servers_all_regions(image_id=self.image_id) tenants_id_name_dict = api.get_tenants_id_name_dict() try: conn = api.get_database_conn() cursor = conn.cursor() current_virus_ids = api.get_ids_from_db( cursor, db_table=self.db_table_name) except Exception, e: log.error('Error occured while connecting to security db') return
def fetch_data(self): fw_servers = api.get_servers_all_regions( image_id=self.image_id) tenants_id_name_dict = api.get_tenants_id_name_dict() try: conn = api.get_database_conn() cursor = conn.cursor() current_fws_ids = api.get_ids_from_db( cursor, db_table=self.db_table_name) except Exception, e: log.error('Error occured while connecting to security db') return