Skip to content

Commit ac0a2fa

Browse files
Add default from API on function upgrade generation field (#8515) (#15364)
Signed-off-by: Modular Magician <[email protected]>
1 parent 5a0668b commit ac0a2fa

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.changelog/8515.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
cloudfunctions2: fixed an issue where `google_cloudfunctions2_function.build_config.source.storage_source.generation` created a diff when not set in config
3+
```

google/services/cloudfunctions2/resource_cloudfunctions2_function.go

+1
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ project ID requesting the build is assumed.`,
164164
},
165165
"generation": {
166166
Type: schema.TypeInt,
167+
Computed: true,
167168
Optional: true,
168169
Description: `Google Cloud Storage generation for the object. If the generation
169170
is omitted, the latest generation will be used.`,

0 commit comments

Comments
 (0)