Fix wrong creds reference in create_applications method.

This commit is contained in:
dandds 2020-02-01 15:14:56 -05:00
parent 6b8d9d1d65
commit 0b8886182d

View File

@ -193,12 +193,11 @@ class AzureCloudProvider(CloudProviderInterface):
def create_application(self, payload: ApplicationCSPPayload):
creds = self._source_creds(payload.tenant_id)
# TODO: these should be tenant_sp_client_id, etc
credentials = self._get_credential_obj(
{
"client_id": creds.root_sp_client_id,
"secret_key": creds.root_sp_key,
"tenant_id": creds.root_tenant_id,
"client_id": creds.tenant_sp_client_id,
"secret_key": creds.tenant_sp_key,
"tenant_id": creds.tenant_id,
},
resource=self.sdk.cloud.endpoints.resource_manager,
)