Skip to content

Commit

Permalink
Merge pull request #1356 from koendc/b-remote-plugin-case
Browse files Browse the repository at this point in the history
command/state: fix for state files containing an upper case remote type
  • Loading branch information
mitchellh committed Apr 14, 2015
2 parents 96e05e2 + 428fd98 commit e91b513
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion command/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"os"
"path/filepath"
"strings"

"github.com/hashicorp/errwrap"
"github.com/hashicorp/terraform/state"
Expand Down Expand Up @@ -208,7 +209,7 @@ func remoteState(
}

// Initialize the remote client based on the local state
client, err := remote.NewClient(local.Remote.Type, local.Remote.Config)
client, err := remote.NewClient(strings.ToLower(local.Remote.Type), local.Remote.Config)
if err != nil {
return nil, errwrap.Wrapf(fmt.Sprintf(
"Error initializing remote driver '%s': {{err}}",
Expand Down

0 comments on commit e91b513

Please sign in to comment.