#!/usr/bin/env python
# -*- coding: utf-8 -*-

import pyrax
from pyrax.base_identity import BaseAuth
import pyrax.exceptions as exc


class KeystoneIdentity(BaseAuth):
    """
    Implements the Keystone-specific behaviors for Identity. In most
    cases you will want to create specific subclasses to implement the
    _get_auth_endpoint() method if you want to use something other
    than the config file to control your auth endpoint.
    """

    _default_region = "RegionOne"

    def _get_auth_endpoint(self):
        ep = pyrax.get_setting("auth_endpoint")
        if ep is None:
            raise exc.EndpointNotDefined("No auth enpoint has been specified.")
        return ep

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import pyrax
from pyrax.base_identity import BaseAuth
import pyrax.exceptions as exc


class KeystoneIdentity(BaseAuth):
    """
    Implements the Keystone-specific behaviors for Identity. In most
    cases you will want to create specific subclasses to implement the
    _get_auth_endpoint() method if you want to use something other
    than the config file to control your auth endpoint.
    """

    _default_region = "RegionOne"

    def _get_auth_endpoint(self):
        ep = pyrax.get_setting("auth_endpoint")
        if ep is None:
            raise exc.EndpointNotDefined("No auth endpoint has been specified.")
        return ep

Fix a minor typo in the EndpointNotDefined exception
Fix a minor typo in the EndpointNotDefined exception
