'Attach backup device.'

def _attach_device(self, ctxt, backup_device, properties, is_snapshot=False):

    if (not is_snapshot):
        return self._attach_volume(ctxt, backup_device, properties)
    else:
        return self._attach_snapshot(ctxt, backup_device, properties)
