config: case sensitive templates

This commit is contained in:
Mitchell Hashimoto 2014-07-23 08:38:43 -07:00
parent e523e400b8
commit fa175113fe
6 changed files with 6 additions and 3 deletions

View File

@ -55,7 +55,7 @@ func (v *FlagVarFile) Set(raw string) error {
return nil
}
const libuclParseFlags = libucl.ParserKeyLowercase
const libuclParseFlags = libucl.ParserNoTime
func loadVarFile(path string) (map[string]string, error) {
var obj *libucl.Object

View File

@ -29,7 +29,7 @@ var ContextOpts terraform.ContextOpts
// Put the parse flags we use for libucl in a constant so we can get
// equally behaving parsing everywhere.
const libuclParseFlags = libucl.ParserKeyLowercase
const libuclParseFlags = libucl.ParserNoTime
func init() {
BuiltinConfig.Providers = map[string]string{

View File

@ -9,7 +9,7 @@ import (
// Put the parse flags we use for libucl in a constant so we can get
// equally behaving parsing everywhere.
const libuclParseFlags = libucl.ParserKeyLowercase
const libuclParseFlags = libucl.ParserNoTime
// libuclConfigurable is an implementation of configurable that knows
// how to turn libucl configuration into a *Config object.

View File

@ -485,6 +485,7 @@ do
const basicResourcesStr = `
aws_instance[db] (x1)
VPC
security_groups
dependsOn
aws_instance.web

View File

@ -31,6 +31,7 @@ resource aws_instance "web" {
resource "aws_instance" "db" {
security_groups = "${aws_security_group.firewall.*.id}"
VPC = "foo"
depends_on = ["aws_instance.web"]
}

View File

@ -21,6 +21,7 @@
"aws_instance": {
"db": {
"security_groups": ["${aws_security_group.firewall.*.id}"],
"VPC": "foo",
"depends_on": ["aws_instance.web"]
},