Fixes #5011 - Backend downcased for init
This commit is contained in:
parent
316d4734ee
commit
61240b4250
|
@ -31,6 +31,8 @@ func (c *InitCommand) Run(args []string) int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
remoteBackend = strings.ToLower(remoteBackend)
|
||||||
|
|
||||||
var path string
|
var path string
|
||||||
args = cmdFlags.Args()
|
args = cmdFlags.Args()
|
||||||
if len(args) > 2 {
|
if len(args) > 2 {
|
||||||
|
|
|
@ -161,7 +161,7 @@ func TestInit_remoteState(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
args := []string{
|
args := []string{
|
||||||
"-backend", "http",
|
"-backend", "HTTP",
|
||||||
"-backend-config", "address=" + conf.Config["address"],
|
"-backend-config", "address=" + conf.Config["address"],
|
||||||
testFixturePath("init"),
|
testFixturePath("init"),
|
||||||
tmp,
|
tmp,
|
||||||
|
|
Loading…
Reference in New Issue