def zfs_destroy(self, target):
cmd = '/sbin/zfs destroy -r {target}'.format(target=target)
logger.debug('Destroying {}'.format(target))
logger.debug('Executing: {}'.format(cmd))
if local(cmd).return_code != 0:
raise SnapshotException('Failed to destroy {}'.format(target))
评论列表
文章目录