Skip to content

Commit

Permalink
switch references of user agent to sdk moniker in wrapped code
Browse files Browse the repository at this point in the history
  • Loading branch information
iscai-msft committed Jun 22, 2020
1 parent 40a8430 commit c4589a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# ------------------------------------
from ._version import VERSION

USER_AGENT = "keyvault-keys/{}".format(VERSION)
SDK_MONIKER = "keyvault-keys/{}".format(VERSION)
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from . import AsyncChallengeAuthPolicy
from .client_base import ApiVersion
from .._user_agent import USER_AGENT
from .._sdk_moniker import SDK_MONIKER
from .._generated.aio import KeyVaultClient as _KeyVaultClient

if TYPE_CHECKING:
Expand Down Expand Up @@ -53,7 +53,7 @@ def __init__(self, vault_url: str, credential: "AsyncTokenCredential", **kwargs:
pipeline=pipeline,
transport=transport,
authentication_policy=AsyncChallengeAuthPolicy(credential),
sdk_moniker=USER_AGENT,
sdk_moniker=SDK_MONIKER,
**kwargs
)
self._models = _KeyVaultClient.models(api_version=api_version)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from . import ChallengeAuthPolicy
from .._generated import KeyVaultClient as _KeyVaultClient
from .._user_agent import USER_AGENT
from .._sdk_moniker import SDK_MONIKER

if TYPE_CHECKING:
# pylint:disable=unused-import,ungrouped-imports
Expand Down Expand Up @@ -58,7 +58,7 @@ def __init__(self, vault_url, credential, **kwargs):
pipeline=pipeline,
transport=transport,
authentication_policy=ChallengeAuthPolicy(credential),
sdk_moniker=USER_AGENT,
sdk_moniker=SDK_MONIKER,
**kwargs
)
self._models = _KeyVaultClient.models(api_version=api_version)
Expand Down

0 comments on commit c4589a0

Please sign in to comment.