in terranova/commands/binds.py [0:0]
def untaint(path: str, address: str) -> None:
"""Remove the 'tainted' state from a resource instance."""
# Construct resources path
full_path = SharedContext.resources_dir().joinpath(path)
# Mount terraform context
terraform = mount_context(full_path, import_vars=True)
# Execute untaint command
try:
terraform.untaint(address)
except ErrorReturnCode as err:
raise Exit(code=err.exit_code) from err