'Returns info about current version.'

def _get_current(self):

    try:
        url = ('%s' % self.api.client.get_endpoint())
        return self._get(url, 'version')
    except exc.NotFound:
        url = ('%s/' % url.rsplit('/', 1)[0])
        return self._get(url, 'version')
