From 61240b4250c7efcb665d0e51ea7a200f04132e37 Mon Sep 17 00:00:00 2001 From: Justin Nauman Date: Fri, 5 Feb 2016 06:26:12 -0600 Subject: [PATCH] Fixes #5011 - Backend downcased for init --- command/init.go | 2 ++ command/init_test.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/command/init.go b/command/init.go index 198456dd20..627fcb2296 100644 --- a/command/init.go +++ b/command/init.go @@ -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 { diff --git a/command/init_test.go b/command/init_test.go index d12501707a..c132491660 100644 --- a/command/init_test.go +++ b/command/init_test.go @@ -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,