Skip to content

Commit 30d44a6

Browse files
authored
Merge pull request #30 from ocervell/fix-29
Fix issue #29
2 parents 7aacc62 + db1b110 commit 30d44a6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning][semver-site].
1111

1212
### Added
1313

14-
- The `scheduler_job` variable, the `scheduler_job` output, and the `pubsub_topic_name` output to enable linking multiple
14+
- The `scheduler_job` variable, the `scheduler_job` output, and the `pubsub_topic_name` output to enable linking multiple
1515
instances of the module to the same Cloud Scheduler job. [#15]
1616

1717
## [1.3.0] - 2019-12-18

outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
*/
1616

1717
output "name" {
18-
value = var.scheduler_job == null ? google_cloud_scheduler_job.job.0.name : var.scheduler_job.name
18+
value = length(google_cloud_scheduler_job.job) > 0 ? google_cloud_scheduler_job.job.0.name : null
1919
description = "The name of the job created"
2020
}
2121

2222
output "scheduler_job" {
23-
value = var.scheduler_job == null ? google_cloud_scheduler_job.job : var.scheduler_job
23+
value = length(google_cloud_scheduler_job.job) > 0 ? google_cloud_scheduler_job.job.0 : null
2424
description = "The Cloud Scheduler job instance"
2525
}
2626

0 commit comments

Comments
 (0)