src/modules/get_pcmk_properties_db.py [211:268]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self.parse_ha_cluster_config()

    def _get_expected_value(self, category, name):
        """
        Get expected value for a given configuration parameter.

        :param category: The category of the configuration parameter.
        :type category: str
        :param name: The name of the configuration parameter.
        :type name: str
        :return: The expected value for the configuration parameter.
        :rtype: str
        """
        _, defaults_key = self.BASIC_CATEGORIES[category]

        fence_config = self.constants["VALID_CONFIGS"].get(self.fencing_mechanism, {})
        os_config = self.constants["VALID_CONFIGS"].get(self.os_type, {})

        return fence_config.get(name) or os_config.get(name, self.constants[defaults_key].get(name))

    def _get_resource_expected_value(self, resource_type, section, param_name, op_name=None):
        """
        Get expected value for a given resource configuration parameter.

        :param resource_type: The type of the resource.
        :type resource_type: str
        :param section: The section of the resource configuration.
        :type section: str
        :param param_name: The name of the configuration parameter.
        :type param_name: str
        :param op_name: The name of the operation (if applicable), defaults to None
        :type op_name: str, optional
        :return: The expected value for the resource configuration parameter.
        :rtype: str
        """
        resource_defaults = (
            self.constants["RESOURCE_DEFAULTS"].get(self.os_type, {}).get(resource_type, {})
        )

        if section == "meta_attributes":
            return resource_defaults.get("meta_attributes", {}).get(param_name)
        elif section == "operations":
            ops = resource_defaults.get("operations", {}).get(op_name, {})
            return ops.get(param_name)
        elif section == "instance_attributes":
            return resource_defaults.get("instance_attributes", {}).get(param_name)
        return None

    def _create_parameter(
        self,
        category,
        name,
        value,
        expected_value=None,
        id=None,
        subcategory=None,
        op_name=None,
    ):
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/modules/get_pcmk_properties_scs.py [217:274]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self.parse_ha_cluster_config()

    def _get_expected_value(self, category, name):
        """
        Get expected value for basic configuration parameters.

        :param category: Category of the parameter
        :type category: str
        :param name: Name of the parameter
        :type name: str
        :return: Expected value of the parameter
        :rtype: str
        """
        _, defaults_key = self.BASIC_CATEGORIES[category]

        fence_config = self.constants["VALID_CONFIGS"].get(self.fencing_mechanism, {})
        os_config = self.constants["VALID_CONFIGS"].get(self.os_type, {})

        return fence_config.get(name) or os_config.get(name, self.constants[defaults_key].get(name))

    def _get_resource_expected_value(self, resource_type, section, param_name, op_name=None):
        """
        Get expected value for resource-specific configuration parameters.

        :param resource_type: Type of the resource (e.g., stonith, ipaddr)
        :type resource_type: str
        :param section: Section of the resource (e.g., meta_attributes, operations)
        :type section: str
        :param param_name: Name of the parameter
        :type param_name: str
        :param op_name: Name of the operation (if applicable)
        :type op_name: str
        :return: Expected value of the parameter
        :rtype: str
        """
        resource_defaults = (
            self.constants["RESOURCE_DEFAULTS"].get(self.os_type, {}).get(resource_type, {})
        )

        if section == "meta_attributes":
            return resource_defaults.get("meta_attributes", {}).get(param_name)
        elif section == "operations":
            ops = resource_defaults.get("operations", {}).get(op_name, {})
            return ops.get(param_name)
        elif section == "instance_attributes":
            return resource_defaults.get("instance_attributes", {}).get(param_name)
        return None

    def _create_parameter(
        self,
        category,
        name,
        value,
        expected_value=None,
        id=None,
        subcategory=None,
        op_name=None,
    ):
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



