Merge pull request #5012 from jrnt30/TF-5011-Backend-flag-normalization

Fixes #5011 - Backend downcased for init
This commit is contained in:
James Nugent 2016-02-08 17:59:20 -05:00
commit b787fe2798
2 changed files with 3 additions and 1 deletions

View File

@ -31,6 +31,8 @@ func (c *InitCommand) Run(args []string) int {
return 1
}
remoteBackend = strings.ToLower(remoteBackend)
var path string
args = cmdFlags.Args()
if len(args) > 2 {

View File

@ -161,7 +161,7 @@ func TestInit_remoteState(t *testing.T) {
}
args := []string{
"-backend", "http",
"-backend", "HTTP",
"-backend-config", "address=" + conf.Config["address"],
testFixturePath("init"),
tmp,