Skip to content

Commit

Permalink
fix: optional start_time (#1)
Browse files Browse the repository at this point in the history
* Compute start_time

* Optional start_time

* Optional start_time

* Update variables.tf

* Update variables.tf

* Update variables.tf

* Prepare release v2.0.1
  • Loading branch information
blakelead authored Dec 1, 2020
1 parent e2a032a commit 205e9aa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
# Changelog

## v2.0.2

### Fixed

- Optional start time, in order to avoid errors when applying module

## v2.0.1

## v2.0.0

## v1.0.0

2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resource "azurerm_automation_schedule" "schedule" {
automation_account_name = var.automation_account_name
frequency = var.frequency
interval = var.interval
start_time = var.start_time
start_time = var.start_time == "" ? null : var.start_time
expiry_time = var.expiry_time
timezone = var.timezone
week_days = var.week_days
Expand Down
1 change: 1 addition & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ variable "frequency" {
variable "start_time" {
type = string
description = "(Optional) Start time of the schedule. Must be at least five minutes in the future. Defaults to seven minutes in the future from the time the resource is created."
default = ""
}

variable "expiry_time" {
Expand Down

0 comments on commit 205e9aa

Please sign in to comment.