in src/modules/location_constraints.py [0:0]
def remove_location_constraints(self, location_constraints: List[ET.Element]) -> None:
"""
Removes the specified location constraints.
:param location_constraints: A list of location constraints to be removed.
:type location_constraints: List[ET.Element]
"""
for location_constraint in location_constraints:
rsc = location_constraint.attrib.get("rsc")
if rsc:
command_output = self.execute_command_subprocess(
RSC_CLEAR[self.ansible_os_family](rsc)
)
self.result.update(
{
"details": command_output,
"changed": True,
}
)
else:
self.result["changed"] = False