def location_constraints_exists()

in src/modules/location_constraints.py [0:0]


    def location_constraints_exists(self) -> List[ET.Element]:
        """
        Checks if location constraints exist.

        :return: A list of location constraints if they exist, otherwise an empty list.
        :rtype: List[ET.Element]
        """
        try:
            xml_output = self.execute_command_subprocess(CONSTRAINTS)
            self.result["details"] = xml_output
            return ET.fromstring(xml_output).findall(".//rsc_location") if xml_output else []
        except Exception as ex:
            self.handle_exception(ex)