Skip to content

Commit

Permalink
fixing unmarshall error
Browse files Browse the repository at this point in the history
  • Loading branch information
vishwahiremat committed Sep 19, 2023
1 parent 08cff77 commit 4092b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ucp/resources/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ func (id ID) MarshalText() ([]byte, error) {
func (id *ID) UnmarshalText(data []byte) error {
parsed, err := Parse(string(data))
if err != nil {
return fmt.Errorf("failed to unmarshal text, value was not a valid resource ID: %w", err)
parsed = ParseTerraformResource(string(data))
}

// Assign fields into self.
Expand Down

0 comments on commit 4092b3d

Please sign in to comment.