Skip to content

Commit

Permalink
fix lookup to azurerm subdir.
Browse files Browse the repository at this point in the history
fixes #42
  • Loading branch information
fujiwara committed May 27, 2022
1 parent a305435 commit aee8351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tfstate/lookup.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func ReadURL(loc string) (*TFState, error) {
key := strings.TrimPrefix(u.Path, "/")
src, err = readGCS(u.Host, key, "")
case "azurerm":
split := strings.Split(u.Path, "/")
split := strings.SplitN(u.Path, "/", 4)
src, err = readAzureRM(u.Host, split[1], split[2], split[3], azureRMOption{})
case "file":
src, err = os.Open(u.Path)
Expand Down

0 comments on commit aee8351

Please sign in to comment.