def check_squid_files(self):
        """Validates squid config, cache directory and ownership."""
        print "Checking Squid Files......",
        var_map = {
            'match_squid_conf': False,
            'match_squid_cache': False,
            'match_squid_ownership': False,
        }

        conf_err_msg = health_check_utils.check_path(
            self.NAME,
            "/etc/squid/squid.conf")
        if not conf_err_msg == "":
            self._set_status(0, conf_err_msg)
        elif 100644 < int(oct(os.stat('/etc/squid/squid.conf').st_mode)):
            self._set_status(
                0,
                "[%s]Error: squid.conf has incorrect "
                "file permissions" % self.NAME)
        else:
            var_map['match_squid_conf'] = True

        squid_path_err_msg = health_check_utils.check_path(
            self.NAME, '/var/squid/')
        if not squid_path_err_msg == "":
            self._set_status(0, squid_path_err_msg)
        elif health_check_utils.check_path(
            self.NAME,
            '/var/squid/cache'
        ) != "":
            self._set_status(
                0,
                health_check_utils.check_path(
                    self.NAME,
                    '/var/squid/cache'
                )
            )
        else:
            var_map['match_squid_cache'] = True
            uid = os.stat('/var/squid/').st_uid
            gid = os.stat('/var/squid/').st_gid
            if uid != gid or pwd.getpwuid(23).pw_name != 'squid':
                self._set_status(
                    0,
                    "[%s]Error: /var/squid directory ownership "
                    "misconfigured" % self.NAME)
            else:
                var_map['match_squid_ownership'] = True

        fails = []
        for key in var_map.keys():
            if var_map[key] is False:
                fails.append(key)

        if len(fails) != 0:
            self.messages.append(
                "[%s]Info: Failed components for squid config: "
                "%s" % (
                    self.NAME,
                    ', '.join(item for item in fails)
                )
            )
        return True
dataset/ETHPy150Open openstack/compass-core/compass/actions/health_check/check_squid.py/SquidCheck.check_squid_files/swapped operands of `<`