'Create a volume from a snapshot.
TODO: support using the size from the user.'

@utils.trace
def create_volume_from_snapshot(self, volume, snapshot):

    common = self._login()
    try:
        return common.create_volume_from_snapshot(volume, snapshot)
    finally:
        self._logout(common)
