Skip to content

Commit 8065b70

Browse files
committed
Fix multiapi client
1 parent 22c1fd8 commit 8065b70

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

azure-mgmt-keyvault/azure/mgmt/keyvault/key_vault_management_client.py

+4-7
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,14 @@ class KeyVaultManagementClient(MultiApiClientMixin, SDKClient):
8282
)
8383

8484
def __init__(self, credentials, subscription_id, api_version=None, base_url=None, profile=KnownProfiles.default):
85+
self.config = KeyVaultManagementClientConfiguration(credentials, subscription_id, base_url)
8586
super(KeyVaultManagementClient, self).__init__(
86-
credentials=credentials,
87-
subscription_id=subscription_id,
87+
credentials,
88+
self.config,
8889
api_version=api_version,
89-
base_url=base_url,
9090
profile=profile
9191
)
9292

93-
self.config = KeyVaultManagementClient(credentials, subscription_id, base_url)
94-
self._client = ServiceClient(self.config.credentials, self.config)
95-
9693
############ Generated from here ############
9794

9895
@classmethod
@@ -113,7 +110,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
113110
from .v2018_02_14 import models
114111
return models
115112
raise NotImplementedError("APIVersion {} is not available".format(api_version))
116-
113+
117114
@property
118115
def operations(self):
119116
"""Instance depends on the API version:

0 commit comments

Comments
 (0)