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