def attach_snap(self, snap): snap_name = VNXSnap.get_name(snap) out = self._cli.attach_snap(snap_name, lun_id=self.get_id(self), poll=self.poll) if len(out): raise ex.VNXAttachSnapError(out)
def attach_snap(self, snap): snap_name = VNXSnap.get_name(snap) out = self._cli.attach_snap(snap_name, lun_id=self.get_id(self), poll=self.poll) ex.raise_if_err(out, 'failed to attach snap {}'.format(snap_name), default=ex.VNXAttachSnapError)