def _get_container_log_files(self, rootfs_path,
                                 options=defaults.DEFAULT_CRAWL_OPTIONS,
                                 ):
        """
        Returns a list of path strings, one for each logfile we should maintain
        symlinks for.

        The paths are relative to the filesystem of the container. For example
        the path for /var/log/messages in the container will be just
        /var/log/messages in this list.

        Security consideration. We make sure that the path is absolute and it
        does not contain any '..' in it.
        """
        # List of maps {name:name,type:type}
        container_logs = options['logcrawler']['default_log_files']

        logs = self._parse_log_locations(
            var='LOG_LOCATIONS',
            isJson=False)
        container_logs.extend(logs)

        logs = self._parse_log_locations(
            var='LOGS_CONFIG',
            isJson=True)
        container_logs.extend(logs)

        # Finally, make sure that the paths are absolute

        for log in container_logs:
            name = log['name']
            if not os.path.isabs(name) or name in '..':
                container_logs.remove(log)
                logger.warning(
                    'User provided a log file path that is not absolute: %s' %
                    name)
        return container_logs
dataset/ETHPy150Open cloudviz/agentless-system-crawler/crawler/dockercontainer.py/DockerContainer._get_container_log_files/swapped operands of `in`