Skip to content

Commit

Permalink
refactor: move identity DEFAULT_MOUNT_POINT to constants (#1123)
Browse files Browse the repository at this point in the history
* drop duplicate "the" from docstring

* Move secrets_engines.identity.DEFAULT_MOUNT_POINT to constants.identity
  • Loading branch information
cognifloyd committed Jan 20, 2024
1 parent 6e47552 commit f7688e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hvac/api/auth_methods/okta.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def login(
:param password: Password for the authenticating user.
:type password: str | unicode
:param use_token: if True, uses the token in the response received from the auth request to set the "token"
attribute on the the :py:meth:`hvac.adapters.Adapter` instance under the _adapter Client attribute.
attribute on the :py:meth:`hvac.adapters.Adapter` instance under the _adapter Client attribute.
:type use_token: bool
:param mount_point: The "path" the method/backend was mounted on.
:type mount_point: str | unicode
Expand Down
4 changes: 1 addition & 3 deletions hvac/api/secrets_engines/identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

from hvac import exceptions, utils
from hvac.api.vault_api_base import VaultApiBase
from hvac.constants.identity import ALLOWED_GROUP_TYPES

DEFAULT_MOUNT_POINT = "identity"
from hvac.constants.identity import ALLOWED_GROUP_TYPES, DEFAULT_MOUNT_POINT

logger = logging.getLogger(__name__)

Expand Down
1 change: 1 addition & 0 deletions hvac/constants/identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
"internal",
"external",
]
DEFAULT_MOUNT_POINT = "identity"

0 comments on commit f7688e2

Please sign in to comment.