Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit 73502d2

Browse files
Merge pull request #209 from JupiterOne/208-projectId-config
Fixes #208 - Incorrect projectId property being applied to entities when projectId is supplied in integration config
2 parents 8132222 + d94fa40 commit 73502d2

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ and this project adheres to
88

99
## [Unreleased]
1010

11+
## 0.32.1 - 2021-06-04
12+
13+
### Fixed
14+
15+
- [#208](https://github.com/JupiterOne/graph-google-cloud/issues/208) -
16+
Incorrect `projectId` property being applied to entities when `projectId` is
17+
supplied in integration config
18+
1119
## 0.32.0 - 2021-06-04
1220

1321
### Added

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jupiterone/graph-google-cloud",
3-
"version": "0.32.0",
3+
"version": "0.32.1",
44
"description": "A graph conversion tool for https://cloud.google.com/",
55
"license": "MPL-2.0",
66
"main": "dist/index.js",

src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export const invocationConfig: IntegrationInvocationConfig<IntegrationConfig> =
7676

7777
beforeAddEntity(context, entity: Entity): Entity {
7878
const projectId =
79+
context.instance.config.projectId ||
7980
context.instance.config.serviceAccountKeyConfig.project_id;
8081

8182
return {

0 commit comments

Comments
 (0)