def _print_list(self):
    for list_item in self.list_items:
        log.info('---- List of %s in %s ----', list_item, self.name)
        if hasattr(self, list_item):
            items = getattr(self, list_item)
            for item in items:
                log.info(item)
        else:
            log.error('Item %s does not exist!', list_item)
def _print_list(self):
    for list_item in self.list_items:
        log.info('---- List of %s in %s ----', list_item, self.name)
        if hasattr(self, list_item):
            items = getattr(self, list_item)
            for item in items:
                log.info(item)
        else:
            log.error('Item %s does not exist!', list_item)