Skip to content

Commit

Permalink
Fixed a bug that prevented AWS spot configuration from being created …
Browse files Browse the repository at this point in the history
…in the cloud-config.yml.
  • Loading branch information
triffer committed Jul 29, 2019
1 parent 49523aa commit 835bc80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ type Config struct {
Tags []string `json:"tags"`
TFStatePath string `json:"tf_state_path"`
Version string `json:"version"`
VMProvisioningType string `json:vm_provisioning_type`
VMProvisioningType string `json:"vm_provisioning_type""`
WorkerType string `json:"worker_type"`
}

Expand Down Expand Up @@ -352,5 +352,5 @@ func (c Config) IsGithubAuthSet() bool {
}

func (c Config) IsSpot() bool {
return c.Spot
return c.VMProvisioningType == SPOT
}

0 comments on commit 835bc80

Please sign in to comment.