diff --git a/vendor/github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids/parse.go b/vendor/github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids/parse.go index 3272b21d0215..609e825bdedf 100644 --- a/vendor/github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids/parse.go +++ b/vendor/github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids/parse.go @@ -167,6 +167,12 @@ func (p Parser) Parse(input string, insensitively bool) (*ParseResult, error) { return nil, fmt.Errorf("expected %d segments but got %d for %q", len(p.segments), len(parsed), input) } + for k, v := range parsed { + if v == "" { + return nil, fmt.Errorf("segment %q is required but got an empty value", k) + } + } + return &ParseResult{ Parsed: parsed, }, nil diff --git a/vendor/modules.txt b/vendor/modules.txt index 8d14cebdebb2..a711ba861283 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -254,7 +254,7 @@ github.com/googleapis/gax-go/v2 # github.com/hashicorp/errwrap v1.1.0 ## explicit github.com/hashicorp/errwrap -# github.com/hashicorp/go-azure-helpers v0.17.0 +# github.com/hashicorp/go-azure-helpers v0.17.1 ## explicit github.com/hashicorp/go-azure-helpers/authentication github.com/hashicorp/go-azure-helpers/lang/dates