Skip to content

Commit c3ba2ae

Browse files
committed
Fixes #32: Updating the source for a local event-function doesn't update the function
#32
1 parent f2bb448 commit c3ba2ae

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Updating the source for a local event-function doesn't update the function. [#32]
13+
1014
## [1.1.0] - 2019-09-02
1115

1216
### Added
@@ -32,6 +36,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
3236
[1.1.0]: https://github.com/terraform-google-modules/terraform-google-event-function/compare/v1.0.0...v1.1.0
3337

3438

39+
[#32]: https://github.com/terraform-google-modules/terraform-google-event-function/issues/32
3540
[#28]: https://github.com/terraform-google-modules/terraform-google-event-function/pull/28
3641
[#23]: https://github.com/terraform-google-modules/terraform-google-event-function/pull/23
3742
[#18]: https://github.com/terraform-google-modules/terraform-google-event-function/pull/18

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ resource "google_storage_bucket" "main" {
3030
}
3131

3232
resource "google_storage_bucket_object" "main" {
33-
name = basename(data.archive_file.main.output_path)
33+
name = "${data.archive_file.main.output_md5}-${basename(data.archive_file.main.output_path)}"
3434
bucket = google_storage_bucket.main.name
3535
source = data.archive_file.main.output_path
3636
content_disposition = "attachment"

0 commit comments

Comments
 (0)