Skip to content

Commit 45ab59f

Browse files
committed
fix(services): update dataproc policy/workflow template id field to use name and be unique
1 parent 71d5d3e commit 45ab59f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/services/dataprocAutoscalingPolicy/format.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export default ({
1212
region: string
1313
}): GcpDataprocAutoscalingPolicy => {
1414
const {
15-
id,
1615
projectId,
1716
name,
1817
basicAlgorithm = {},
@@ -22,7 +21,7 @@ export default ({
2221
} = service
2322

2423
return {
25-
id,
24+
id: name,
2625
projectId,
2726
region,
2827
name,

src/services/dataprocWorkflowTemplate/format.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ export default ({
244244
region: string
245245
}): GcpDataprocWorkflowTemplate => {
246246
const {
247-
id,
248247
name,
249248
projectId,
250249
version,
@@ -258,7 +257,7 @@ export default ({
258257
} = service
259258

260259
return {
261-
id,
260+
id: name,
262261
projectId,
263262
region,
264263
name,

0 commit comments

Comments
 (0)