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