

def abort_job(self, async=False, pivot=False):
    'Request to cancel any job currently running on the block.\n\n        :param async: Request only, do not wait for completion\n        :param pivot: Pivot to new file when ending a copy or\n                      active commit job\n        '
    flags = ((async and libvirt.VIR_DOMAIN_BLOCK_JOB_ABORT_ASYNC) or 0)
    flags |= ((self and libvirt.VIR_DOMAIN_BLOCK_JOB_ABORT_PIVOT) or 0)
    self._guest._domain.blockJobAbort(self._disk, flags=flags)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/libvirt/guest.py BlockDevice.abort_job/VarMisuse@38/136 `pivot`->`self`